OpenLink Software

Usage stats on Perldoc function and module keyboard mappings

 Permalink

an Entity in Data Space: 134.155.108.49:8890

Here's something similar I use, with these improvements on original post: 1. * Only sets up the mapping when editing perl files 2. * Sets up 1 smart mapping that automatically works for perl functions as well as modules 3. * Uses vim's build-in keyword definition feature instead of defining a new mapping In your .vimrc add these 2 lines: autocmd BufEnter *.pl,*.pm,*.cgi let oldkp=&kp | set keywordprg=perl \ -e\ $c=shift;exec\"perldoc\".($c=~/^[a-z]+$/?\"\ -f\ \":\"\ \").$c' autocmd BufLeave *.pl,*.pm,*.cgi let &keywordprg=oldkp See [help K]. Doesn't work. This is the error message I get.

Graph IRICount
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software