matze / vim-move

Plugin to move lines and selections up and down
http://www.vim.org/scripts/script.php?script_id=4687
MIT License
1.2k stars 56 forks source link

feat: Allow usage in only a specific mode, i.e. visual mode #67

Closed tecfu closed 2 years ago

tecfu commented 2 years ago

As a user I want vim-move enabled only in visual mode, so that I don't remap the move_key_modifier in normal mode AND so that I can't move text in normal mode.

tecfu commented 2 years ago

I forked and submitted a PR to resolve this. My strategy was to create an additional mapping for a move key modifier, specific to only visual mode: move_key_modifier_visualmode.

See: https://github.com/matze/vim-move/pull/68