vim: improve tab navigation mappings

This commit is contained in:
Fernando Schauenburg 2022-02-09 23:43:06 +01:00
parent fc36e5e32a
commit 075187658a

View file

@ -25,9 +25,9 @@ nmap { '<Down>', '<cmd>resize -1<cr>' }
nmap { '<Left>', '<cmd>vertical resize -1<cr>' }
nmap { '<Right>', '<cmd>vertical resize +1<cr>' }
-- easier tab navigation
nmap { '+', '<cmd>tabprevious<cr>', { silent = true } }
nmap { '-', '<cmd>tabnext<cr>' , { silent = true } }
-- easy tab navigation
nmap { '<leader>.', '<cmd>tabnext<cr>', { silent = true } }
nmap { '<leader>,', '<cmd>tabprevious<cr>', { silent = true } }
-- move lines up and down
nmap { '<A-j>', [[:move .+1<cr>==]] , { silent = true } }