Updated config
This commit is contained in:
@ -8,9 +8,9 @@ map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", "Clear search")
|
||||
map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all")
|
||||
|
||||
-- Buffer management
|
||||
map("n", "<C-n>", "<cmd>enew<cr>", "New file")
|
||||
map("n", "<C-t>", "<cmd>enew<cr>", "New file")
|
||||
map({ "i", "n", "s", "v" }, "<C-s>", "<cmd>w<cr>", "Save file")
|
||||
map("n", "<C-q>", "<cmd>bd<cr>", "Delete buffer")
|
||||
map("n", "<C-q>", "<cmd>close<cr>", "Close window")
|
||||
|
||||
-- Copy and paste
|
||||
map("v", "<C-c>", "y")
|
||||
@ -27,10 +27,10 @@ map("n", "<C-Enter>", "i<Enter>", "Split line")
|
||||
map({"n", "v"}, "<C-a>", "<esc>ggVG", "Select all")
|
||||
|
||||
-- Editing multiple instances
|
||||
map("n", "<f3>", "*#", "Search word under cursor")
|
||||
map("n", "<f3>", "#*", "Search word under cursor")
|
||||
map("v", "<f3>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
map("n", "<C-d>", "viw", "Select word under cursor")
|
||||
map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
-- map("n", "<C-d>", "viw", "Select word under cursor")
|
||||
-- map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
map("n", "<C-r>", "*#:%s//<C-r><C-w>/g<left><left>", "Replace word under cursor")
|
||||
map("v", "<C-r>", "y/<C-r>\"<cr>N:%s//<C-r>\"/g<left><left>", "Replace selection")
|
||||
|
||||
@ -71,3 +71,9 @@ map("i", "<S-Up>", "<Esc>v<Up>")
|
||||
map("i", "<S-Down>", "<Esc>v<Down>")
|
||||
map("i", "<S-Left>", "<Esc>v<Left>")
|
||||
map("i", "<S-Right>", "<Esc>v<Right>")
|
||||
|
||||
-- Window switching
|
||||
map("n", "<A-Up>", "<C-w>k", "Move to the window above")
|
||||
map("n", "<A-Down>", "<C-w>j", "Move to the window below")
|
||||
map("n", "<A-Left>", "<C-w>h", "Move to the window on the left")
|
||||
map("n", "<A-Right>", "<C-w>l", "Move to the window on the right")
|
||||
|
Reference in New Issue
Block a user