Monday, June 21, 2010

Re: Please help with iab problem

Jeremy Conlin-2 wrote:
>
> I have defined an abbreviation as:
>
> :iab bi Bible
>
> This works fine when I type <space>ib<space> but doesn't work when ib
> is preceded by a parenthesis or any other character. How can I create
> an abbreviation that will work regardless of what precedes it?
>
>
as long as the character before the left-hand-side(lhs) is not a keyword,
there sould NOT be a problem.
please check the output for the following command:
:echo &iskeyword
the other thing you may want to notice is that if the lhs is only one
character (for example: iab q Quran) it will work ONLY after a space or a
tab or -otherwise, when you want still the abbreviation after any character-
you would have to exit insert mode (i.e. <esc>), and then start insert mode
again BEFORE you type the lhs.
see :help :ab. (map.txt, look from line 847).

cheers
Alex

--
View this message in context: http://old.nabble.com/Please-help-with-iab-problem-tp28955816p28956101.html
Sent from the Vim - General mailing list archive at Nabble.com.

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