The matchit plugin (1.13.2, for Vim 6.3+, Last Change: 2016 Aug 21) uses :vmap commands, defining common mappings for both Visual and Select mode. For instance:
55> vnoremap <silent> % :<C-U>call <SID>Match_wrapper('',1,'v') <CR>m'gv`` 56> vnoremap <silent> g% :<C-U>call <SID>Match_wrapper('',0,'v') <CR>m'gv`` 63> vmap [% <Esc>[%m'gv`` 64> vmap ]% <Esc>]%m'gv`` 71> vmap a% <Esc>[%v]% IMHO these ought to be :xmap (or :vmap followed by :sunmap) rather than :vmap because in Select mode such mappings will replace the selection rather than act on it, whenever the user hits the % key. (I have a Cyrillic keymap with language-mappings starting with %, and when trying to use them in Select mode, to replace the highlighted area, the result is surprising to say the least.) Best regards, Tony. -- -- 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. For more options, visit https://groups.google.com/d/optout.