Neovim-from-scratch icon indicating copy to clipboard operation
Neovim-from-scratch copied to clipboard

Wrong code in moving text

Open kidflash opened this issue 2 years ago • 1 comments

https://github.com/LunarVim/Neovim-from-scratch/blob/8cebbf6b111b664aecf8a29039c483ae4db5afe7/lua/user/keymaps.lua#L39

The current code is for Insert mode not Normal. I've added the correct code for Insert and Normal mode below:

keymap("i", "<A-j>", "<Esc>:m .+1<CR>==gi", opts)
keymap("i", "<A-k>", "<Esc>:m .-2<CR>==gi", opts)
keymap("n", "<A-j>", ":m .+1<CR>==", opts)
keymap("n", "<A-k>", ":m .-2<CR>==", opts)

kidflash avatar Dec 27 '21 20:12 kidflash

Yeah, noticed this too. Took mine from https://vim.fandom.com/wiki/Moving_lines_up_or_down

aryzing avatar Jan 03 '22 21:01 aryzing

fixed by #293

gnmearacaun avatar Jun 30 '23 01:06 gnmearacaun