Initial commit
This commit is contained in:
commit
35aaf58a92
14 changed files with 314 additions and 0 deletions
21
lua/keybinds.lua
Normal file
21
lua/keybinds.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
vim.keymap.set("n", "<C-h>", "<C-w><C-h>", {})
|
||||
vim.keymap.set("n", "<C-j>", "<C-w><C-j>", {})
|
||||
vim.keymap.set("n", "<C-k>", "<C-w><C-k>", {})
|
||||
vim.keymap.set("n", "<C-l>", "<C-w><C-l>", {})
|
||||
|
||||
-- Move visual blocks around using J/K (up/down)
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv", {})
|
||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv", {})
|
||||
|
||||
-- Keep search terms in the middle of the screen
|
||||
vim.keymap.set("n", "n", "nzzzv", {})
|
||||
vim.keymap.set("n", "N", "Nzzzv", {})
|
||||
|
||||
-- Paste without replacing clipboard contents
|
||||
vim.keymap.set("x", "<Leader>p", "\"_dP", {})
|
||||
|
||||
-- Yank into system clipboard
|
||||
vim.keymap.set("n", "<Leader>y", "\"+y", {})
|
||||
|
||||
-- Like ciw on the text under the cursor
|
||||
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
Loading…
Add table
Add a link
Reference in a new issue