Khubaib wrote:
hello Tony,
thanks for the reply. sorry, I am not that good at VIM. I didnt have those dirs
and files. so, i created dirs, but my question is, what are the names of files,
c.vim and perl.vim?
Yes.
I have created e.g. perl.vim, and have put this line in it:
map <buffer> {qc0i#<esc>j} [EMAIL PROTECTED]
but now when i open a perl file, its and i press @c , its not doing what its
supposed to do? can you please tell me whats wrong? may be a silly question..
thanks..
-k
Ah, so you record it in a register. The problem is that registers are
global. But we can get over that if we map @c to something else than the
register (otherwise we will have to change it whenever we jump in and
out of a C file).
map <buffer> @c 0i#<Esc>j
You may want to replace the @c above by something easier to hit (such as
<F5> ) and use that key instead.
Best regards,
Tony.