X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=vim%2F.vimrc;h=42d87df669705e92785adc2cc05c60a40cb3055b;hb=28c1433fda0144c1dbdf6f2793054d923ead9de4;hp=674025087006ead81884e1afe690fa55b5d8244f;hpb=7efd7af689d6679b43e1606460d52258571db2e8;p=dotfiles.git diff --git a/vim/.vimrc b/vim/.vimrc index 6740250..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 @@ -33,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 @@ -43,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... @@ -70,3 +80,6 @@ let g:syntastic_check_on_wq = 0 " Vimtex options let g:vimtex_compiler_enabled = 0 + +" Background transparency +hi Normal guibg=NONE ctermbg=NONE