Wednesday, May 9, 2012

Key Mapping with variables

I wanted to know whether we can make use of variables in key mappings
eg:

Following is what i'm doing currently

nmap <A-1> <Plugin_A with '1' as argument to it>
nmap <A-2> <Plugin_A with '2' as argument to it>
...
nmap <A-9> <Plugin_A with '9' as argument to it>

What i intend to do

nmap <A-var> <Plugin_A with 'var' as argument to it>
where 'var' is variable that can take values from 0-9

I want to know, Can we do to this?

--
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: