mg979 / vim-visual-multi

Multiple cursors plugin for vim/neovim
MIT License
4.28k stars 82 forks source link

Capitalizing with U when using visual multi select does not work #248

Closed Napam closed 1 year ago

Napam commented 1 year ago

Describe the issue: Generally speaking in vim you can select text with visual mode then press U to capitalize letters in the selection.

When I select text using VM and then pressing "U" (which usually capitalizes whatever I have selected) the cursor just jumps to the top of the selection.

Steps to reproduce

  1. Enter Visual multi mode with Ctrl + n
  2. Select some text
  3. Press U

I have tried the minimal vimrc with just the plugin and the results were the same. I do get a warning though with my full config enabled:

b1: Overwritten imap: <BS> (I BS)  ->  v:lua.MPairs.autopairs_bs()

but i think it is unrelated


mg979 commented 1 year ago

The mappings for lowercase/uppercase are gu/gU, as for normal mode, because u is used for undo, and U shouldn't be used.

Napam commented 1 year ago

Thank you for the info! Just curious, why shouldn't U be used? Is that a neovim thing in general that U should not be overridden?

mg979 commented 1 year ago

Because U isn't remapped and it would do what U does in normal mode.