Skip to content

Commit

Permalink
feat(keymap): added split right/below keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
realeinherjar committed Sep 20, 2023
1 parent a8b2c09 commit ccf63ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ vim.keymap.set("n", "<C-u>", "<C-u>zz")
vim.keymap.set("n", "n", "nzzzv")
vim.keymap.set("n", "N", "Nzzzv")

-- better indenting
-- Better indenting
vim.keymap.set("v", "<", "<gv")
vim.keymap.set("v", ">", ">gv")

Expand Down Expand Up @@ -50,6 +50,10 @@ vim.keymap.set("n", "<leader>w", "<CMD>w<CR>", { silent = true, desc = "[S]ave F
vim.keymap.set("n", "<leader>q", "<CMD>q<CR>", { silent = true, desc = "[Q]uit" })
vim.keymap.set("n", "<leader>Q", "<CMD>qa!<CR>", { silent = true, desc = "[Q]uit Force All" })

-- Split window
vim.keymap.set("n", "<leader>-", "<C-W>s", { desc = "Split window below", remap = true })
vim.keymap.set("n", "<leader>|", "<C-W>v", { desc = "Split window right", remap = true })

-- Global Yank/Paste
vim.keymap.set(
{ "n", "v" },
Expand Down

0 comments on commit ccf63ab

Please sign in to comment.