Open yaohunzhanyue opened 4 years ago
https://unix.stackexchange.com/questions/134759/running-a-vim-key-combination-on-startup
The command to go to the window to the right is <C-w>l. You can execute that with
<C-w>l
:execute "normal! \<C-w>l"
But for the <C-w> commands, there's a special :wincmd that makes this easier. So just skip your custom mapping, and do:
<C-w>
:wincmd
autocmd VimEnter ... autocmd VimEnter * wincmd l
https://unix.stackexchange.com/questions/134759/running-a-vim-key-combination-on-startup
The command to go to the window to the right is
<C-w>l
. You can execute that withBut for the
<C-w>
commands, there's a special:wincmd
that makes this easier. So just skip your custom mapping, and do: