Skip to content

Instantly share code, notes, and snippets.

@gchiam
Created October 6, 2020 16:16
Show Gist options
  • Save gchiam/d8637234e22e492d74e537412a18c362 to your computer and use it in GitHub Desktop.
Save gchiam/d8637234e22e492d74e537412a18c362 to your computer and use it in GitHub Desktop.
VIM - Move visual selection
" Move visual selection
vnoremap J :m '>+1<cr>gv=gv
vnoremap K :m '<-2<cr>gv=gv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment