vim: reindent

master
Guillaume DOTT 2012-11-30 15:38:21 +01:00
parent b665bb040f
commit 39abdf5af5
1 changed files with 19 additions and 19 deletions

View File

@ -195,25 +195,25 @@ au BufWritePost * call ModeChange()
" FUNCTIONS " FUNCTIONS
" { " {
function! ToggleYesNo() function! ToggleYesNo()
let w=expand("<cword>") let w=expand("<cword>")
if w=="yes" | let w="no" if w=="yes" | let w="no"
elseif w=="no" | let w="yes" elseif w=="no" | let w="yes"
elseif w=="on" | let w="off" elseif w=="on" | let w="off"
elseif w=="off" | let w="on" elseif w=="off" | let w="on"
elseif w=="True" | let w="False" elseif w=="True" | let w="False"
elseif w=="False" | let w="True" elseif w=="False" | let w="True"
elseif w=="true" | let w="false" elseif w=="true" | let w="false"
elseif w=="false" | let w="true" elseif w=="false" | let w="true"
elseif w=="manual" | let w="auto" elseif w=="manual" | let w="auto"
elseif w=="auto" | let w="manual" elseif w=="auto" | let w="manual"
elseif w=="public" | let w="private" elseif w=="public" | let w="private"
elseif w=="private" | let w="protected" elseif w=="private" | let w="protected"
elseif w=="protected" | let w="public" elseif w=="protected" | let w="public"
else | let w="" else | let w=""
endif endif
if w!="" if w!=""
exec "normal! \"_ciw\<C-R>=w\<CR>\<Esc>b" exec "normal! \"_ciw\<C-R>=w\<CR>\<Esc>b"
endif endif
endfunc endfunc
" } " }