initial commit

This commit is contained in:
iris committed 2022-08-02 16:36:22 -04:00
commit 31ebe341c3
13 files changed
+278

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
local map = function(from, to)
vim.keymap.set('n', from, to, { noremap = true, silent = true })
vim.keymap.set('x', from, to, { noremap = true, silent = true })
end
local swap = function(a, b)
map(a, b)
map(b, a)
end
swap('n', 'h')
swap('e', 'j')
swap('i', 'k')
swap('o', 'l')
swap('<C-w>n', '<C-w>h')
swap('<C-w>e', '<C-w>j')
swap('<C-w>i', '<C-w>k')
swap('<C-w>o', '<C-w>l')
swap('N', 'H')
swap('O', 'L')