You are not logged in.
Pages: 1
Waddup with thee, brethren (*waves to attract phrakture's attention*)
As part of a function I want to define in .vimrc, I need a structure like this:
inoremap $string :call myFunc($string) " (obviously $string is a string literal in reality...)
...
function myFunc(string)
exe "normal i" . a:string
endfunction
How can I insert the literal $string from within my function without causing the mapping to fire? At the moment, myFunc calls itself everytime it attempts to insert $string, since $string is mapped to myFunc...
TY
- Dave
P.S. I read the help page for mappings, of course, but couldn't find an answer
Last edited by KomodoDave (2007-06-02 16:36:57)
Offline
Pages: 1