Skip to content

Instantly share code, notes, and snippets.

@mfontani
Created May 3, 2011 12:11
Show Gist options
  • Save mfontani/953225 to your computer and use it in GitHub Desktop.
Save mfontani/953225 to your computer and use it in GitHub Desktop.
Vim: {v,}split source file for Perl module under cursor
" split edit the source file for the Perl module under the current WORD
nnoremap ,m :execute 'spl `perldoc -l ' . expand("<cWORD>") . '`'<CR>
nnoremap ,M :execute 'vspl `perldoc -l ' . expand("<cWORD>") . '`'<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment