Skip to content

Commit

Permalink
Add toggle for iffalse
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunyho committed Jul 3, 2022
1 parent 641a22e commit 0476641
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/toggle.vim
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ function! Toggle() "{{{
let s:wordUnderCursor_tmp = "min"
let s:toggleDone = 1

" NOTE: this breaks if the cursor is on the '\' character in \iffalse
elseif (s:wordUnderCursor ==? "iffalse")
let s:wordUnderCursor_tmp = "iftrue"
let s:toggleDone = 1
elseif (s:wordUnderCursor ==? "iftrue")
let s:wordUnderCursor_tmp = "iffalse"
let s:toggleDone = 1

endif

" preserve case (provided by Jan Christoph Ebersbach)
Expand Down

0 comments on commit 0476641

Please sign in to comment.