Skip to content

Commit

Permalink
adding macros
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Dec 19, 2023
1 parent a538d3a commit 4406796
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/neovim/files/lua/techdufus/core/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ keymap(normal_mode, "<leader>k", "ddkP", opts)
keymap(normal_mode, "<C-u>", "<C-u>zz", opts)
keymap(normal_mode, "<C-d>", "<C-d>zz", opts)

-- MACROS
keymap(normal_mode, "Q", "@qj", opts)
keymap(visual_block_mode, "Q", ":norm @q<CR>gv", opts)


-- Visual Block --
-- Move text up and down
keymap(visual_block_mode, "J", ":move '>+1<CR>gv-gv", opts)
Expand Down

0 comments on commit 4406796

Please sign in to comment.