Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 17: | Line 17: | ||
<pre> |
<pre> |
||
:e `perldoc -l Module::Name` |
:e `perldoc -l Module::Name` |
||
− | </pre> |
||
− | |||
− | The following function will allow you to set your cursor over a Perl module name in the file that you are currently editing and type <code>\pm</code> to open the corresponding source file in a new buffer: |
||
− | <pre> |
||
− | nnoremap <Leader>pm :call LoadPerlModule()<CR> |
||
− | |||
− | function! LoadPerlModule() |
||
− | execute 'e `perldoc -l ' . expand("<cWORD>") . '`' |
||
− | endfunction |
||
</pre> |
</pre> |
||