summaryrefslogtreecommitdiff
path: root/lua/config/keymaps.lua
diff options
context:
space:
mode:
authorMarek Muzyka <marek@muzyka.dev>2025-11-14 19:26:59 +0100
committerMarek Muzyka <marek@muzyka.dev>2025-11-14 19:26:59 +0100
commit9e69e3554ee1dd56f055423de09a0a575fbe73b0 (patch)
tree095c62ec326a338a57b18921caaebe663eab86e1 /lua/config/keymaps.lua
Basic config
Diffstat (limited to 'lua/config/keymaps.lua')
-rw-r--r--lua/config/keymaps.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua
new file mode 100644
index 0000000..af9a88e
--- /dev/null
+++ b/lua/config/keymaps.lua
@@ -0,0 +1,17 @@
+local map = vim.keymap.set
+
+-- move between windows
+map("n", "<C-h>", "<C-w>h")
+map("n", "<C-j>", "<C-w>j")
+map("n", "<C-k>", "<C-w>k")
+map("n", "<C-l>", "<C-w>l")
+
+-- clear highligths and command
+map("n", "<Esc>", "<cmd>nohlsearch<CR><cmd>echo<CR>")
+
+-- file explorer
+map("n", "-", "<cmd>Ex<CR>")
+
+-- copy and paste using the system clipboard
+map({"n", "v"}, "<leader>y", '"+y')
+map({"n", "v"}, "<leader>p", '"+p')