From 64131a109f6931095bf2d6bbd867c10e53034e22 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 11 Aug 2022 16:02:07 +0200 Subject: [PATCH] nvim: add window movement keymaps --- .config/nvim/lua/keymaps.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index e109310..4a81299 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -11,11 +11,15 @@ map('n', '', ':bnext') map('i', '', ':bprevious') map('i', '', ':bnext') --- tabs -map('n', '', ':tabprevious') -map('n', '', ':tabnext') -map('i', '', ':tabprevious') -map('i', '', ':tabnext') +--windows +map('n', '', ':wincmd h') +map('n', '', ':wincmd j') +map('n', '', ':wincmd k') +map('n', '', ':wincmd l') +map('i', '', ':wincmd h') +map('i', '', ':wincmd j') +map('i', '', ':wincmd k') +map('i', '', ':wincmd l') -- remove word map('n', '', 'db')