initial commit
This commit is contained in:
commit
31ebe341c3
13 files changed
+278
No files matched your search
@@ -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')
|
||||
Reference in new issue
Block a user