mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 03:30:36 +00:00
feat(remap.lua): add keymap for selecting all text with "<leader>a" shortcut
The change adds a new keymap in the remap.lua file to select all text in the editor when the "<leader>a" shortcut is pressed. This allows users to quickly select the entire document without manually scrolling or using other selection methods.
This commit is contained in:
@@ -3,6 +3,9 @@ local opts = { noremap = true, silent = true }
|
||||
opts.desc = "Show Cheatsheet"
|
||||
vim.keymap.set("n", "<leader>\\", "<cmd>Cheatsheet<CR>", opts) -- toggle file explorer
|
||||
|
||||
opts.desc = "Select All"
|
||||
vim.keymap.set("n", "<leader>a", "gg0vG$", opts) -- select all
|
||||
|
||||
-- Move selected line / block of text in visual mode up
|
||||
opts.desc = "Move selected line / block of text in visual mode up"
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv", opts)
|
||||
|
||||
Reference in New Issue
Block a user