All Projects → matze → Vim Move

matze / Vim Move

Licence: mit
Plugin to move lines and selections up and down

Projects that are alternatives of or similar to Vim Move

Switch.vim
A simple Vim plugin to switch segments of text with predefined replacements
Stars: ✭ 506 (-31.9%)
Mutual labels:  vim-plugin
Vim Hexokinase
hexokinase.vim - (Neo)Vim plugin for asynchronously displaying the colours in the file (#rrggbb, #rgb, rgb(a)? functions, hsl(a)? functions, web colours, custom patterns)
Stars: ✭ 622 (-16.29%)
Mutual labels:  vim-plugin
Vim Quickrun
Run commands quickly.
Stars: ✭ 671 (-9.69%)
Mutual labels:  vim-plugin
Srcery Vim
Dark colorscheme for gvim and vim
Stars: ✭ 518 (-30.28%)
Mutual labels:  vim-plugin
Traces.vim
Range, pattern and substitute preview for Vim
Stars: ✭ 568 (-23.55%)
Mutual labels:  vim-plugin
Alchemist.vim
Elixir Integration Into Vim
Stars: ✭ 632 (-14.94%)
Mutual labels:  vim-plugin
Vim Colors Pencil
Light (& dark) color scheme inspired by iA Writer
Stars: ✭ 498 (-32.97%)
Mutual labels:  vim-plugin
Context.vim
Vim plugin that shows the context of the currently visible buffer contents
Stars: ✭ 688 (-7.4%)
Mutual labels:  vim-plugin
Phpcomplete.vim
Improved PHP omnicompletion
Stars: ✭ 582 (-21.67%)
Mutual labels:  vim-plugin
Vim Wordy
Uncover usage problems in your writing
Stars: ✭ 645 (-13.19%)
Mutual labels:  vim-plugin
Julia Vim
Vim support for Julia.
Stars: ✭ 556 (-25.17%)
Mutual labels:  vim-plugin
Vim Gnupg
This script implements transparent editing of gpg encrypted files.
Stars: ✭ 566 (-23.82%)
Mutual labels:  vim-plugin
Ansible Vim
A vim plugin for syntax highlighting Ansible's common filetypes
Stars: ✭ 633 (-14.8%)
Mutual labels:  vim-plugin
Committia.vim
A Vim plugin for more pleasant editing on commit messages
Stars: ✭ 510 (-31.36%)
Mutual labels:  vim-plugin
Vim Easymotion
Vim motions on speed!
Stars: ✭ 6,247 (+740.78%)
Mutual labels:  vim-plugin
Vim Markdown Composer
An asynchronous markdown preview plugin for Vim and Neovim.
Stars: ✭ 501 (-32.57%)
Mutual labels:  vim-plugin
Lightline.vim
A light and configurable statusline/tabline plugin for Vim
Stars: ✭ 5,886 (+692.19%)
Mutual labels:  vim-plugin
Clever F.vim
Extended f, F, t and T key mappings for Vim.
Stars: ✭ 730 (-1.75%)
Mutual labels:  vim-plugin
Apprentice
A dark, low-contrast, Vim colorscheme.
Stars: ✭ 688 (-7.4%)
Mutual labels:  vim-plugin
Vim Matchup
vim match-up: even better % 👊 navigate and highlight matching words 👊 modern matchit and matchparen replacement
Stars: ✭ 638 (-14.13%)
Mutual labels:  vim-plugin

move

It's annoying to delete and paste parts of a text just to move it up/down or left/right a bit. There is the :m[ove] command but it is quite awkward to use by todays standards. vim-move is a Vim plugin that moves lines and selections in a more visual manner. Out of the box, the following keys are mapped in visual and normal mode:

<A-k>   Move current line/selection up
<A-j>   Move current line/selection down
<A-h>   Move current character/selection left
<A-l>   Move current character/selection right

The mappings can be prefixed with a count, e.g. 5<A-k> will move the selection up by 5 lines.

See this short demo for a first impression:

vim-vertical-move demo

vim-horizontal-move_demo

Installation

vim-move is compatible with all major plugin managers. To install it using Vundle, add

Bundle 'matze/vim-move'

to your .vimrc.

Customization

Use g:move_key_modifier to set a custom modifier for key bindings. For example,

let g:move_key_modifier = 'C'

which will create the following key bindings:

<C-k>   Move current line/selections up
<C-j>   Move current line/selections down

And so on...

License

This plugin is licensed under MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].