summaryrefslogtreecommitdiff
path: root/lua/linux/remap.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2023-11-19 15:05:03 +0500
committertalha <talha@talhaamir.xyz>2023-11-19 15:05:03 +0500
commit27c1b5b9a5cadf1d1331e4cefeaa9c8a73707b26 (patch)
tree024c86f419419a36780cc8a3780e33a4d2513439 /lua/linux/remap.lua
parenta75d4659bfac04a1f5cad4166cc68f873768c653 (diff)
Added harpoon
Diffstat (limited to 'lua/linux/remap.lua')
-rw-r--r--lua/linux/remap.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/lua/linux/remap.lua b/lua/linux/remap.lua
deleted file mode 100644
index dfc7aca..0000000
--- a/lua/linux/remap.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-vim.g.mapleader = " "
-
--- open project view with netrw
-vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
-
--- file splitting
-vim.keymap.set("n", "<leader>vs", vim.cmd.vsplit)
-vim.keymap.set("n", "<leader>hs", vim.cmd.split)
-
--- moving selected lines across lines
-vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
-vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
-
--- not moving cursor when bringing files up
-vim.keymap.set("n", "J", "mzJ`z")
-
--- keep cursor in screen center when moving up and down
-vim.keymap.set("n", "<C-d>", "<C-d>zz")
-vim.keymap.set("n", "<C-u>", "<C-u>zz")
-
--- keep cursor in screen center when traversing in find
-vim.keymap.set("n", "n", "nzzzv")
-vim.keymap.set("n", "N", "Nzzzv")
-
--- copying to system clipboard
-vim.keymap.set("n", "<leader>y", [["+y]])
-vim.keymap.set("v", "<leader>y", [["+y]])
-vim.keymap.set("n", "<leader>Y", [["+Y]])
-
--- deleting without polluting vim clipboard
-vim.keymap.set("n", "<leader>d", [["_d]])
-vim.keymap.set("v", "<leader>d", [["_d]])
-
--- global substitute the word cursor is on in current file
-vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])