From: Iain Patterson Date: Wed, 5 Oct 2011 13:36:45 +0000 (+0100) Subject: Fixed virtualedit in status line. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=f130b711466e87b0b5ee527c5487239adb595cc2;p=profile.git Fixed virtualedit in status line. Fixed check for virtualedit being active. Show virtual column iff it is different from cursor column. --- diff --git a/.vimrc b/.vimrc index 9c7457a..52bacca 100644 --- a/.vimrc +++ b/.vimrc @@ -695,7 +695,7 @@ fun! Show_VirtualEdit() "{{{2 if &ve == "all" return "V" - elseif &ve + elseif &ve != '' return "v" else return "" @@ -758,7 +758,7 @@ fun! Show_StatusLine() "{{{2 endif call Iain_Vars() let l:sl1='%2n\:\ %<%1*%f%0*\ [%{Show_List()}%{Show_Bind()}%{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:sl3='L:%1*%4.6l%0*/%-4.6L\ C:%1*%3.6c%V%0*\ \|\ %P' let l:hexformat='%b' if b:iainhex let l:hexformat='0\x%02B'