From f130b711466e87b0b5ee527c5487239adb595cc2 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 5 Oct 2011 14:36:45 +0100 Subject: [PATCH] Fixed virtualedit in status line. Fixed check for virtualedit being active. Show virtual column iff it is different from cursor column. --- .vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' -- 2.20.1