On 31-May-2013 15:43 +0200, Alexey Radkov wrote:

> Hi vim_dev!
> 
> Thinking about possible enhancements in vim 7.4 i found that it would
> be probably useful to implement two new autocmd events: ModeEnter and
> ModeLeave which arguments would be the name of the mode being entered
> / left. Currently there are two similar autocmds InsertEnter and
> InsertLeave but as their names say it is only possible with them to
> detect entering / leaving of Insert mode.
> 
> In one of my plugin (vim-xkbswitch) i found that i cannot do things
> perfect due to lack of possibility to detect leaving Select mode
> flavours. The proposed autocmds would help me a lot with that.

+1; I've seen people attempting to hook into entering / leaving visual
mode, and while the former is easy (mapping v / V / <C-v>), the latter
cannot be done.


http://stackoverflow.com/questions/15561132/run-command-when-vim-enters-visual-mode

http://stackoverflow.com/questions/16165350/how-to-emulate-autocmd-visualleave-or-autocmd-visualenter-in-vim

-- regards, ingo

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui