2021-12-20 20:46:06 +01:00
|
|
|
|
set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME
|
|
|
|
|
set viminfofile=$XDG_CACHE_HOME/viminfo
|
|
|
|
|
|
2021-03-11 16:53:35 +01:00
|
|
|
|
call plug#begin('$XDG_DATA_HOME/vim-plugins')
|
2021-10-27 16:01:17 +02:00
|
|
|
|
Plug 'tomasr/molokai'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
Plug 'junegunn/fzf'
|
|
|
|
|
Plug 'junegunn/fzf.vim'
|
2020-10-01 14:49:09 +02:00
|
|
|
|
Plug 'mhinz/vim-signify'
|
2021-08-30 00:12:06 +02:00
|
|
|
|
Plug 'RRethy/vim-hexokinase', { 'do': 'make hexokinase' }
|
2021-04-12 23:53:10 +02:00
|
|
|
|
Plug 'dense-analysis/ale'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
Plug 'itchyny/lightline.vim'
|
2020-08-21 16:22:21 +02:00
|
|
|
|
Plug 'airblade/vim-gitgutter'
|
2022-02-09 18:05:33 +01:00
|
|
|
|
Plug 'hashivim/vim-terraform'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
Plug 'bitc/vim-bad-whitespace'
|
2022-02-09 18:05:33 +01:00
|
|
|
|
Plug 'Yggdroot/indentLine'
|
2020-03-03 12:46:21 +01:00
|
|
|
|
call plug#end()
|
|
|
|
|
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set title
|
|
|
|
|
set number
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set gdefault
|
2021-10-27 15:43:35 +02:00
|
|
|
|
set wildmenu
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set nobackup
|
2021-10-27 15:43:35 +02:00
|
|
|
|
set incsearch
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set expandtab
|
|
|
|
|
set smartcase
|
2020-02-07 12:45:22 +01:00
|
|
|
|
set splitbelow
|
|
|
|
|
set splitright
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set ignorecase
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set nohlsearch
|
2021-10-27 15:43:35 +02:00
|
|
|
|
set autoindent
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set noshowmode
|
|
|
|
|
set shiftround
|
|
|
|
|
set cursorline
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set nojoinspaces
|
2020-10-25 22:15:16 +01:00
|
|
|
|
set cursorcolumn
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set nowritebackup
|
|
|
|
|
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set bs=2
|
|
|
|
|
set tabstop=2
|
|
|
|
|
set scrolloff=5
|
2021-10-27 15:43:35 +02:00
|
|
|
|
set backspace=eol,start,indent
|
|
|
|
|
set matchpairs+=(:),{:},[:],<:>,':',":"
|
|
|
|
|
set laststatus=2
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set shiftwidth=2
|
2021-04-15 14:12:37 +02:00
|
|
|
|
set showtabline=0
|
2016-06-15 13:55:21 +02:00
|
|
|
|
set softtabstop=2
|
2016-06-14 13:31:47 +02:00
|
|
|
|
set winminheight=0
|
2021-10-27 15:43:35 +02:00
|
|
|
|
|
2020-02-05 15:23:43 +01:00
|
|
|
|
nmap <tab> <C-w>w
|
2020-02-03 11:30:45 +01:00
|
|
|
|
nmap <Esc><CR> :wq!<CR>
|
2020-10-01 17:13:00 +02:00
|
|
|
|
nmap <C-p> :Files<CR>
|
|
|
|
|
nmap <C-a> :Files ~<CR>
|
2016-06-14 13:31:47 +02:00
|
|
|
|
|
|
|
|
|
map <leader>b <Esc>:set cc=79<CR>
|
|
|
|
|
map <leader>nb <Esc>:set cc=0<CR>
|
2020-03-10 15:58:53 +01:00
|
|
|
|
map <leader>n <Esc>:set nonumber!<CR>
|
2016-06-14 13:31:47 +02:00
|
|
|
|
map <leader>p <Esc>:set paste!<CR>
|
|
|
|
|
|
2021-04-12 23:53:10 +02:00
|
|
|
|
set bg=dark
|
|
|
|
|
set termguicolors
|
2021-04-27 17:36:41 +02:00
|
|
|
|
colorscheme molokai
|
2021-04-12 23:53:10 +02:00
|
|
|
|
|
2020-03-17 00:37:05 +01:00
|
|
|
|
set t_ZH=[3m
|
|
|
|
|
set t_ZR=[23m
|
|
|
|
|
hi Comment cterm=italic gui=italic
|
2016-06-15 13:55:21 +02:00
|
|
|
|
hi BadWhitespace ctermbg=lightblue guibg=lightblue
|
2021-07-29 15:29:10 +02:00
|
|
|
|
hi! Normal ctermbg=NONE guibg=NONE
|
|
|
|
|
hi! NonText ctermbg=NONE guibg=NONE
|
2016-06-15 13:55:21 +02:00
|
|
|
|
|
2021-08-30 00:12:06 +02:00
|
|
|
|
let g:Hexokinase_highlighters = [ 'backgroundfull' ]
|
|
|
|
|
|
2021-04-20 22:52:38 +02:00
|
|
|
|
let $FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/settings/fd'
|
2020-02-05 15:23:43 +01:00
|
|
|
|
command! -bang -nargs=? -complete=dir Files
|
2021-04-05 15:41:38 +02:00
|
|
|
|
\ call fzf#vim#files(<q-args>, {'options': ['-e', '--layout=reverse', '--preview', 'bat --color=always --style=plain --theme=Monokai\ Extended\ Bright {}']}, <bang>0)
|
2020-10-15 13:59:31 +02:00
|
|
|
|
command! -bang -nargs=? -complete=dir Colors
|
|
|
|
|
\ call fzf#vim#colors({'options': ['-e', '--layout=reverse', '--preview', '']}, <bang>0)
|
2020-02-05 15:23:43 +01:00
|
|
|
|
|
2016-06-16 14:30:47 +02:00
|
|
|
|
let g:lightline = {
|
2021-04-13 00:46:50 +02:00
|
|
|
|
\ 'colorscheme': 'powerlineish',
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ 'active': {
|
|
|
|
|
\ 'left': [ [ 'mode', 'paste' ],
|
2020-10-01 14:49:09 +02:00
|
|
|
|
\ [ 'readonly', 'filename' ] ],
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ 'right': [ [ 'lineinfo' ],
|
|
|
|
|
\ [ 'percent' ],
|
2020-02-05 17:28:50 +01:00
|
|
|
|
\ [ 'filetype' ] ]
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ },
|
|
|
|
|
\ 'component_function': {
|
2020-02-29 10:20:32 +01:00
|
|
|
|
\ 'readonly': 'LightLineReadonly'},
|
2016-06-16 14:30:47 +02:00
|
|
|
|
\ }
|
|
|
|
|
|
|
|
|
|
function! LightLineReadonly()
|
2021-10-27 15:50:14 +02:00
|
|
|
|
return &readonly && &filetype !=# 'help' ? '' : ''
|
2016-06-16 14:30:47 +02:00
|
|
|
|
endfunction
|
2020-11-03 16:51:36 +01:00
|
|
|
|
|
2021-10-27 15:43:35 +02:00
|
|
|
|
source ~/.local/settings/vimrc
|