From 5a908c6cbcdba880f7f267c9a238c492d021ac0c Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 10 Mar 2022 16:16:49 +0100 Subject: (n)vim: leader+arrow window nav --- .config/nvim/lua/binds.lua | 4 ++++ .vim/vimrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua index 0e7ae96..7b5d3fe 100644 --- a/.config/nvim/lua/binds.lua +++ b/.config/nvim/lua/binds.lua @@ -24,6 +24,10 @@ map('n', 'h', ':wincmd h', opts) map('n', 'j', ':wincmd j', opts) map('n', 'k', ':wincmd k', opts) map('n', 'l', ':wincmd l', opts) +map('n', '', ':wincmd h', opts) +map('n', '', ':wincmd j', opts) +map('n', '', ':wincmd k', opts) +map('n', '', ':wincmd l', opts) map('n', 'p', 'Telescope find_files', opts) map('n', 'P', 'Telescope file_browser hidden=true', opts) diff --git a/.vim/vimrc b/.vim/vimrc index 1ba6be9..f174b07 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -59,6 +59,10 @@ nnoremap h :wincmd h nnoremap j :wincmd j nnoremap k :wincmd k nnoremap l :wincmd l +nnoremap :wincmd h +nnoremap :wincmd j +nnoremap :wincmd k +nnoremap :wincmd l let &t_8f = "\[38:2:%lu:%lu:%lum" let &t_8b = "\[48:2:%lu:%lu:%lum" -- cgit v1.2.3-70-g09d2