From 63eb6fb8a9dc8e3b08d91013912b86516d8ae2db Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 28 Jun 2022 21:46:11 -0400 Subject: [PATCH] nvim: move netrw to left side and add extra keybinds --- src/.config/nvim/init.vim | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index dc28284..5027d8c 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -20,10 +20,8 @@ let g:netrw_altv = 1 let g:netrw_winsize = 20 function! OpenNetRW() - vsplit - :vertical resize 25 - Explore - wincmd h + Vexplore + wincmd l endfunction aug ProjectDrawer @@ -35,3 +33,8 @@ aug netrw_close au! au WinEnter * if winnr('$') == 1 && getbufvar(winbufnr(winnr()), "&filetype") == "netrw"|q|endif aug END + +nnoremap :wincmd w +inoremap :wincmd w +nnoremap :wincmd W +inoremap :wincmd W