[TAG] 2-cent Tip: Editing Perl scripts in Vim

Raj Shekhar rajlist2 at rajshekhar.net
Mon Feb 4 10:13:17 MSK 2008


in infinite wisdom Ben Okopnik spoke thus  On 02/03/2008 09:20 PM:

> ```
> autocmd FileType perl nmap K "zyiw<c-W>n:set buftype=nofile<CR>:r!
>     \perldoc -tf '<c-R>z' 2>/dev/null <bar><bar> perldoc '<c-R>z'<cr>gg
> '''

In emacs, add this to your .emacs file

```
(global-set-key [f1] 'cperl-perldoc-at-point)

'''

(cperl-mode <http://www.emacswiki.org/cgi-bin/wiki/CPerlMode> should 
come as part of the default emacs installation)


When editing a perl script, move your cursor to a function/module name 
and press f1 to bring up the relevant perldoc page.
-- 
raj shekhar
facts: http://rajshekhar.net | opinions: http://rajshekhar.net/blog
Yoda of Borg are we: Futile is resistance. Assimilate you, we will
'Borg? Sounds Swedish.' - Lily, Star Trek First Contact




More information about the TAG mailing list