diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-05-02 18:11:08 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-05-02 18:11:08 +0200 |
| commit | e5cf58fdc1f9043bfac8ea12b89ce07318cad6cd (patch) | |
| tree | 15b93a8e1428b5be7cdba06f946c4203859b5a30 /lua/pml68/remap.lua | |
| parent | refactor: move around some keymaps (diff) | |
| download | nvim-e5cf58fdc1f9043bfac8ea12b89ce07318cad6cd.tar.gz | |
feat: add J and K keymaps for moving selected code lower or higher
Diffstat (limited to 'lua/pml68/remap.lua')
| -rw-r--r-- | lua/pml68/remap.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index f7eba84..565fd65 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -5,6 +5,8 @@ vim.keymap.set("n", "<leader>rn", "<cmd>set rnu!<CR>") vim.keymap.set("n", "<Esc>", "<cmd>nohl<CR>") vim.keymap.set("n", "<leader>x", "<cmd>bd<CR>") vim.keymap.set("n", "<leader>fo", "=ap") +vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv") +vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv") -- Switch between windows vim.keymap.set("n", "<C-h>", "<C-w>h") |
