summaryrefslogtreecommitdiff
path: root/lua/config/keymaps.lua
diff options
context:
space:
mode:
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')