You're hitting two problems:
a) How to run a command and pass an args?
using exec. Exapmle:
exec "MyCommand ".arg1
You still have to quote spaces eg using substitute
b) How to get char under cursor. Sure, yanking works. But maybe you
don't want to change the registers.
answer:
getline('.')[col('.')-1]
Sincerly
Marc Weber
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---