Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created October 12, 2009 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszkorecki/208321 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/208321 to your computer and use it in GitHub Desktop.
" List all functions in current file and open jump list
" put this in your .vimrc
" added 'j' modifier so that vimgrep doesn't jump to the first result
function! s:ListFunctions()
vimgrep /function/j %
copen
endfunction
command! -bar -narg=0 LS call s:ListFunctions()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment