I have the following defined:
(in my vimrc)
" add an undo point between each WORD
" even in Vim versions older than Ctrl-G u
inoremap <Space> <Space><Left><Right>
inoremap <Tab> <Tab><Left><Right>
inoremap <CR> <CR><Up><Down>
" Ctrl-] not easily reachable on my keyboard
" (AltGr+Ctrl+$), so use F9 instead
map <F9> <C-]>
map! <F9> <C-]>
(in a session file)
iabbr VM Aĝa, saĝa Väinämöinen
Now when I type VM followed by F9, the abbreviation is expanded. When it
is followed by a space instead, it is not expanded. Bug or feature?
Notice that the space or F9 are not part of the abbreviation itself,
they _follow_ it.
Experiment: I just tried replacing "inoremap" by just "imap" (since
there is no recursion if the {rhs} _starts_ with the {lhs}) and _then_
the abbreviation is expanded. So, maybe it is a feature after all?
Using gvim 7.2.267 (Huge, GTK2/Gnome2).
Best regards,
Tony.
--
The cow is nothing but a machine with makes grass fit for us people to
eat.
-- John McNulty
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---