I currently have the following keybinding in my .vimrc
:
nnoremap <Leader>gs :Gstatus<Enter><C-n>
I'm using vim-fugitive plugin here. The intention is to pull up the Git status window and then move the cursor to the next file (<C-n>
). It works, except the <C-n>
part, and it seems to be because Vim executes it before the status window loads.
Is there a way to have Vim wait for the window before <C-n>
is input?