From: Iain Patterson Date: Mon, 23 Oct 2006 09:47:43 +0000 (+0000) Subject: Show paste status. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=e6b7d067305c80c6177a29ce106ac847d2e641cb;p=profile.git Show paste status. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@33 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.vimrc b/.vimrc index 5c3d17e..9e94ae1 100755 --- a/.vimrc +++ b/.vimrc @@ -66,9 +66,9 @@ fun! Cycle_StatusLine() call Iain_Vars() let b:iainhex = ! b:iainhex if b:iainhex - set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%Y%M%R]\ %=0\x%02B\ (%3.6c,%-4.6l)\ 0\x%04.6O\ \|\ %4.6L\ %P + set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%{Show_Paste()}%Y%M%R]\ %=0\x%02B\ (%3.6c,%-4.6l)\ 0\x%04.6O\ \|\ %4.6L\ %P else - set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%Y%M%R]\ %=%b\ (%3.6c,%-4.6l)\ %4.6o\ \|\ %4.6L\ %P + set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%{Show_Paste()}%Y%M%R]\ %=%b\ (%3.6c,%-4.6l)\ %4.6o\ \|\ %4.6L\ %P endif endfun @@ -102,6 +102,10 @@ fun! Show_Tabstop() return &ts endfun +fun! Show_Paste() + if &paste | return "p" | else | return "" | endif +endfun + " Clear Q as we will use it for commands. map Q