Skip to content

Commit

Permalink
fix: moving line up/down was not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
mthnglac committed Jul 5, 2022
1 parent b6360cf commit 4d98cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvim/lua/general/keybinds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ Keybind.g({
--]]

-- move selected line to up/down
{ 'v', 'J', [[<Cmd>m '>+1<CR>gv=gv]], { noremap = true } },
{ 'v', 'K', [[<Cmd>m '<-2<CR>gv=gv]], { noremap = true } },
{ 'v', 'J', [[:m '>+1<CR>gv=gv]], { noremap = true } },
{ 'v', 'K', [[:m '<-2<CR>gv=gv]], { noremap = true } },
{ 'n', 'J', [[mzJ`z]], { noremap = true } },


Expand Down

0 comments on commit 4d98cd2

Please sign in to comment.