Tip 787 Printable Monobook Previous Next
created September 12, 2004 · complexity intermediate · author Luc St-Louis · version 5.7
The following mapping echoes Foo: 42 when one types 42,a.
function! Foo(count) echo 'Foo: ' . a:count endfunction command! -nargs=1 FooCmd call Foo(<args>) map ,a :<C-U>FooCmd(v:count)<CR>
References
Comments
Please explain in slightly greater detail what this code does and where it can be generally used?