X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=vim%2F.vimrc;h=42d87df669705e92785adc2cc05c60a40cb3055b;hb=28c1433fda0144c1dbdf6f2793054d923ead9de4;hp=aebe03606ecc689e002ae6f976b321a2fef1a91b;hpb=f5efa7ef60130ee68c1702a1a45189098fa97046;p=dotfiles.git diff --git a/vim/.vimrc b/vim/.vimrc index aebe036..42d87df 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,7 +1,5 @@ " Automaticly source some files after writing autocmd! bufwritepost .vimrc source % -autocmd! bufwritepost .bashrc !source % -autocmd! bufwritepost .Xresources !xrdb -merge % " Some general options syntax enable @@ -23,6 +21,7 @@ set colorcolumn=80 set textwidth=79 set shiftwidth=4 set tabstop=4 +set nowrap " List characters to mark trailing whitespace etc set listchars=nbsp:¬,tab:▸\ ,eol:↩,extends:»,precedes:«,trail:• @@ -32,9 +31,11 @@ set list map j gj map k gk -" Custom split switching using tab -map l l -map h h +" Custom split and tabswitching using tab +map l +map h +map l l +map h h map j j map k k @@ -42,8 +43,18 @@ map k k nnoremap n nzzzv nnoremap N Nzzzv +" Allow yanking to the clipboards in visual mode +vnoremap sy :w ! xclip +vnoremap cy :w ! xclip -sel clip +" Allow pasting from the clipboards in normal mode +nnoremap sp :r ! xclip -o +nnoremap cp :r ! xclip -sel clip -o + +" Disable ex mode +map Q + " Fold settings -set foldmethod=syntax +set foldmethod=marker set foldlevelstart=99 " Unbind arrow keys, who has them anyways on the keyboard... @@ -66,3 +77,9 @@ let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 0 let g:syntastic_check_on_wq = 0 + +" Vimtex options +let g:vimtex_compiler_enabled = 0 + +" Background transparency +hi Normal guibg=NONE ctermbg=NONE