summaryrefslogtreecommitdiff
path: root/config/.config/nvim/lua/miself/remap.lua
blob: 6682c49fa6aa4da74f90b0b97bf8532a30dc8973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>e", vim.cmd.Ex)
vim.keymap.set("i", "jj", '<Esc>')


-- Cool Mover
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")


-- Clear Search
vim.keymap.set('n', "<leader>h", ':nohlsearch<CR>')


-- Buffer Tabbing
vim.keymap.set('n', "<S-Tab>", ':e #<CR>')