On 2009-11-17, Robbo wrote: > I've just looked for :h cword > but if i write > :map <C-[> :ptag <cword> > > it doesn't work.
A couple of options: :map <C-[> :exe "ptag" expand("<cword>") :map <c-[> :ptag <C-R><C-W> You may want to add <CR> to the end of each of those mappings to cause the ptag command to be executed. See :help :exe :help expand() :help c_CTRL-R_CTRL-W The convention on this list is to bottom-post. Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---