/vim-MvVis

Move visually selected text

Primary LanguageVim ScriptMIT LicenseMIT

MvVis

Move visually selected text

demo

Installation

Plug 'Jorengarenar/vim-MvVis'

Vim's packages

cd ~/.vim/pack/plugins/start
git clone git://github.com/Jorengarenar/vim-MvVis.git

Usage

In visual mode, press CTRL and one of directional keys (H, J, K, L) to move selected text.

You can also provide a number of amount of places you want to move it, e.g. to move selection three columns to the left press 3<C-h>.

Configuration

To disable default mappings set variable g:MvVis_mappings to 0 and define your own, e.g.:

vmap H <Plug>(MvVisLeft)
vmap J <Plug>(MvVisDown)
vmap K <Plug>(MvVisUp)
vmap L <Plug>(MvVisRight)