Two questions about moving in vim
I am sorry to disturb this discussion with such a simple question, but I
am a beginner in vim and was not able to solve this problem:
I would like to have an Abbreviation in insert mode which produces
something like this (cursdor position after the iab is finished is marked with @)
Therefore I have written to html.vim file:
iab Yol <ol><CR><li><CR></ol><ESC>ka
However it produces this:
It always inserts the space after <li>. Does anybody know what I is wrong?
And my second question: I have downloaded html.vim file, which is
available at vim.org and found out, that when I try to use many iabs e.g.
Ybr which is defined like: iab Ybr <br>. But I get this:
(@ - cursor position)
Can you explain me that behaviour?
Thanx a lot.
- Milan Juza wrote:
> <ol>IIRC, the space is got inserted because it's triggered the abbreviation.
> <li> @
> It always inserts the space after <li>. Does anybody know what I is wrong?
You'd use imap command instead or use <C-]> to expand abbreviation.
You have to think in a language to write programs in it,
and it's hard to want something you can't describe.
-- Paul Graham.