All Projects → fedepujol → move.nvim

fedepujol / move.nvim

Licence: other
Gain the power to move lines and blocks and auto-indent them!

Programming Languages

lua
6591 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to move.nvim

stabilize.nvim
Neovim plugin to stabilize window open/close events.
Stars: ✭ 295 (+170.64%)
Mutual labels:  nvim
dotvim
My dotvim - work in progress - Beta stages
Stars: ✭ 27 (-75.23%)
Mutual labels:  nvim
dotfiles
This is what I use to get things done!
Stars: ✭ 59 (-45.87%)
Mutual labels:  nvim
dotfiles
🍀 Vim/Neovim + Tmux + Zsh + Alacritty = Build your own fantastic development environment
Stars: ✭ 65 (-40.37%)
Mutual labels:  nvim
onedark.nvim
One dark and light colorscheme for neovim >= 0.5.0 written in lua based on Atom's One Dark and Light theme. Additionally, it comes with 5 color variant styles
Stars: ✭ 425 (+289.91%)
Mutual labels:  nvim
dotfiles
⚫📁 Dotfiles
Stars: ✭ 23 (-78.9%)
Mutual labels:  nvim
aerial.nvim
Neovim plugin for a code outline window
Stars: ✭ 485 (+344.95%)
Mutual labels:  nvim
Telegraph.nvim
Send commands system commands in an elegant way
Stars: ✭ 33 (-69.72%)
Mutual labels:  nvim
fm-nvim
🗂 Neovim plugin that lets you use your favorite terminal file managers (and fuzzy finders) from within Neovim.
Stars: ✭ 114 (+4.59%)
Mutual labels:  nvim
vim-filetype-formatter
Format program files in vim using your favorite command line formatter
Stars: ✭ 21 (-80.73%)
Mutual labels:  nvim
virtual-types.nvim
Neovim plugin that shows type annotations as virtual text
Stars: ✭ 171 (+56.88%)
Mutual labels:  nvim
nvim-startup.lua
Displays neovim startup time
Stars: ✭ 53 (-51.38%)
Mutual labels:  nvim
LunarVim
An IDE layer for Neovim with sane defaults. Completely free and community driven.
Stars: ✭ 9,296 (+8428.44%)
Mutual labels:  nvim
dotfiles
Configuration files for my setup
Stars: ✭ 24 (-77.98%)
Mutual labels:  nvim
fzf-lsp.nvim
Enable the power of fzf fuzzy search for the neovim built in lsp
Stars: ✭ 143 (+31.19%)
Mutual labels:  nvim
crates.nvim
A neovim plugin that helps managing crates.io dependencies
Stars: ✭ 252 (+131.19%)
Mutual labels:  nvim
Dotfiles
KDE Plasma for twm users.
Stars: ✭ 83 (-23.85%)
Mutual labels:  nvim
aquarium-vim
🌊 Aquarium, a simple vibrant dark theme for vim 🗒
Stars: ✭ 151 (+38.53%)
Mutual labels:  nvim
quick.nvim
A very fast Lua based Neovim configuration that uses coc.nvim for intellisense
Stars: ✭ 159 (+45.87%)
Mutual labels:  nvim
dotfiles
My dotfiles for Neovim, Kitty terminal, Zsh, and a few other things.
Stars: ✭ 101 (-7.34%)
Mutual labels:  nvim

move.nvim

Gain the power to move lines and blocks!

Vertical Movement

vert-line-move

vert-block-move

Horizontal Movement

hor-char

hor-block

Requirements

This plugin works with NeoVim v0.5 or later.

Installation

use 'fedepujol/move.nvim'
Plug 'fedepujol/move.nvim'
'fedepujol/move.nvim';

Usage

The plugin provides the following commands:

Command Description Mode
MoveLine Moves a line up or down Normal
MoveBlock Moves a selected block of text, up or down Visual
MoveHChar Moves the character under the cursor, left or right Normal
MoveHBlock Moves a visual area, left or right Visual

Mappings

VimScript

nnoremap <silent> <A-j> :MoveLine(1)<CR>
nnoremap <silent> <A-k> :MoveLine(-1)<CR>
vnoremap <silent> <A-j> :MoveBlock(1)<CR>
vnoremap <silent> <A-k> :MoveBlock(-1)<CR>
nnoremap <silent> <A-l> :MoveHChar(1)<CR>
nnoremap <silent> <A-h> :MoveHChar(-1)<CR>
vnoremap <silent> <A-l> :MoveHBlock(1)<CR>
vnoremap <silent> <A-h> :MoveHBlock(-1)<CR>

Lua

vim.api.nvim_set_keymap('n', '<A-j>', ":MoveLine(1)<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<A-k>', ":MoveLine(-1)<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<A-j>', ":MoveBlock(1)<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<A-k>', ":MoveBlock(-1)<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<A-l>', ":MoveHChar(1)<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<A-h>', ":MoveHChar(-1)<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<A-l>', ":MoveHBlock(1)<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('v', '<A-h>', ":MoveHBlock(-1)<CR>", { noremap = true, silent = true })

Mention

There is an original and more feature rich plugin (written in VimScript):

vim-move.

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].