Created
April 3, 2013 13:47
Revisions
-
lmullen created this gist
Apr 3, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ " Find related Pandoc footnote numbers " ------------------------------------------------------------------- " Vim's * key searches for the next instance of the word under the " cursor; Vim decides what counts as the boundary of a word with the " iskeyword option. This function toggles the special characters of a " Pandoc footnote in the form [^1] to allow you to jump between " footnotes with the * key. nnoremap _fn :call ToggleFootnoteJumping()<CR> function! ToggleFootnoteJumping() if exists("g:FootnoteJumping") if g:FootnoteJumping == 1 set iskeyword-=[ set iskeyword-=] set iskeyword-=^ let g:FootnoteJumping = 0 else set iskeyword+=[ set iskeyword+=] set iskeyword+=^ let g:FootnoteJumping = 1 endif else set iskeyword+=[ set iskeyword+=] set iskeyword+=^ let g:FootnoteJumping = 1 endif endfunction