I need to execute these commands at startup:
Ctrl+w J
Ctrl+w k
Ctrl+w l
Ctrl+w L
in vim to place windows in special way. What should I put in .vimrc? I tried this:
execute "normal \<C-W> J"
execute "normal \<C-W> k"
execute "normal \<C-W> l"
execute "normal \<C-W> L"
but it doesn’t work
The space that you put between the closing angle bracket and the letter means that you’re telling Vim to do Ctrl+W spacebar then some normal mode command that isn’t a window command. Remove the spaces and you’ll be good.
The Ctrl-W commands can also be named
:wincmdso you could also replace all of the execute/normal shenanigans like this: