From: Iain Patterson Date: Mon, 27 Nov 2006 14:12:24 +0000 (+0000) Subject: Fix fold toggling. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=af5ff1fd3316bbd147dff0bef1f0acd436d68bdb;p=profile.git Fix fold toggling. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@37 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.vimrc b/.vimrc index 7abde90..8fb07e9 100755 --- a/.vimrc +++ b/.vimrc @@ -30,7 +30,6 @@ endif fun! Iain_Vars() if ! exists("b:iainlist") | let b:iainlist = 0 | endif if ! exists("b:iainhex") | let b:iainhex = 0 | endif - if ! exists("b:iainfold") | let b:iainfold = 0 | endif endfun " Change list mode. @@ -50,13 +49,6 @@ fun! Cycle_List() endif endfun -" Toggle folds. -fun! Cycle_Fold() - call Iain_Vars() - let b:iainfold = ! b:iainfold - if b:iainfold | foldclose | else | foldopen | endif -endfun - fun! Show_List() call Iain_Vars() if b:iainlist == 0 @@ -143,7 +135,7 @@ map Q6 :se ts=16: " Change to ts=32 with Q3. map Q3 :se ts=32: " Change foldmethod with Qf. -map Qf :call Cycle_Fold(): +map Qf :se foldenable!: " Change number mode with Qn. map Qn :se number!: