Am 07.08.2019 um 14:04 schrieb Daniel Hahler (Vim Github Repository):
Neovim has a nice feature where you can use |<Cmd>| in a mapping to
stay in the current mode (a better alternative to |vnoremap x
:<C-u>???|, where you then have to handle re-entering visual mode
etc).

(in the case at hand it allows for using |search| in a mapping for
both normal and visual mode, tpope/vim-unimpaired#187
<https://github.com/tpope/vim-unimpaired/pull/187>)

The original patch was done in neovim/neovim#4419
<https://github.com/neovim/neovim/pull/4419> by @bfredl
<https://github.com/bfredl>.

Having it in Vim also would make life easier for plugin authors (in
general due to its usefulness, and with regard to Neovim
compatibility)

For older Vims, see
https://github.com/vim-scripts/motpat.vim/blob/master/autoload/gvmap.vim

--
Andy

--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/5D4AECC5.20001%40yahoo.de.

Raspunde prin e-mail lui