X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/3e59c20a7a476d0b704c2cc1b377b9b10be0640a..40bf56c5fffd581908407412c5b945522433cf82:/vim/vimrc?ds=inline diff --git a/vim/vimrc b/vim/vimrc index 145b8ce..c3c9e6b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -213,7 +213,6 @@ set viewoptions=cursor " only save cursor position " diff mode {{{2 set diffopt+=filler " show filler lines set diffopt+=vertical " always vertical split -set diffopt+=iwhite " ignore white space set diffopt+=context:10 " 10 lines context between changes " reading and writing files {{{2 @@ -350,7 +349,7 @@ nnoremap p+ :silent! set paste"+p:set nopaste function! StripWhitespace(line1, line2, ...) " {{{2 let s_report = &report let &report=0 - let pattern = a:0 ? a:1 : '[\\]\@ :ls:b +" move between windows nnoremap w nnoremap W @@ -543,13 +543,13 @@ nmap cog IndentGuidesToggle nmap [og IndentGuidesEnable nmap ]og IndentGuidesDisable -" quit-another-window {{{2 +" close-another-window {{{2 nnoremap c nnoremap cc c -nnoremap ch :Qh -nnoremap cl :Ql -nnoremap cj :Qj -nnoremap ck :Qk +nnoremap ch :CloseLeftWindow +nnoremap cl :CloseRightWindow +nnoremap cj :CloseBelowWindow +nnoremap ck :CloseAboveWindow " python-mode {{{2