Thursday, May 27, 2010

problem about dispaly perldoc info in vim

i try to write a key map,it's function is when the cursor on the
word,and i hit F2,the vim will open a new window on top ,and dispaly
the info about ' perldoc "keyword"'

so i write the follow sentence

map <F2> :let w="<cword>"<CR>:top new "help"<CR>:1! perldoc -t w<CR>

but no perldoc info display in new window,i do not know how to do to
let it work,any one can help?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment