X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vimrc;h=d28d4e5eec9da8d84e2a6a247a87bab5f2216a58;hp=06f749b23b715c47cd6346432a3f8611d9cefe28;hb=1424a2dd5f62dca2ec89dca4158c2675796dfa12;hpb=d643f35d55b8c3ddf1ba3ebf5206267a74cd7652 diff --git a/.vimrc b/.vimrc index 06f749b..d28d4e5 100644 --- a/.vimrc +++ b/.vimrc @@ -664,6 +664,23 @@ fun! Show_Paste() "{{{2 endif endfun "}}}2 +" Helper for status line. +" Show v when virtualedit mode is block, insert or onemore. +" Show V when virtualedit mode is all. +fun! Show_VirtualEdit() "{{{2 + if ! has("virtualedit") + return "" + endif + + if &ve == "all" + return "V" + elseif &ve + return "v" + else + return "" + endif +endfun "}}}2 + " Helper for status line. " Show U when persistent undo is on. " Show u when persistent undo is off but an undofile exists. @@ -698,7 +715,7 @@ fun! Show_StatusLine() "{{{2 return endif call Iain_Vars() - let l:sl1='%2n\:\ %<%1*%f%0*\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%{Show_Paste()}%{Show_Undo()}%Y%M%R]%{Show_Alt()}\ ' + let l:sl1='%2n\:\ %<%1*%f%0*\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%{Show_Paste()}%{Show_VirtualEdit()}%{Show_Undo()}%Y%M%R]%{Show_Alt()}\ ' let l:sl3='L:%1*%4.6l%0*/%-4.6L\ C:%1*%3.6c%0*\ \|\ %P' let l:hexformat='%b' if b:iainhex @@ -1198,6 +1215,9 @@ let g:p4Presets='P4CONFIG' " BufExplorer. let g:bufExplorerShowRelativePath=1 let g:bufExplorerSplitOutPathName=0 + +" NERDcommenter. +let g:NERDSpaceDelims=1 endif "}}}1 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""