Monday, September 22, 2014

Re: How to force Vim to reconcider abbreviations?

On Mon, 22 Sep 2014 20:00:47 +0200
Christian Brabandt <cblists@256bit.org> wrote:

> On Mo, 22 Sep 2014, Gevisz wrote:
>
> > So, it would be nice to have a short key mapping,
> > for example with <F4>, that would force Vim to
> > reconsider just typed abbreviation and expand it
> > even it was typed in the last session.
>
> Sounds like you are looking for Ctrl-] (:h i_CTRL-])

Thank you. I have made the mapping:
imap <F9> <C-]>
and it seems to work on the simple tests.
(The mapping for so short key is needed because
it eliminates the need to switch keyboard layout.)

If it refuse to work in some cases, I will remap it
to what Ben Fritz suggested.

> (Note, there were some bugs, that prevented to expand abbreviations
> in Vim 7.3.X but they should have been fixed and it should work now
> with 7.4).


I am currently using gvim 7.4.273.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment