Wednesday, September 26, 2012

Switch vim window with command line option

I have the following in a batch file on Windows 7. My goal is to start gvim with the help window for dbext open, open a new window with a vertical split, switch to the new window, and open an SQL file.
 
gvim -c ":help dbext" -c ":vsplit" -c "normal <c-w><c-w>" -c ":e tutorial.sql"
 
Everything works except for switching to the new window with <c-w><c-w>. What am I doing wrong? Thanks.

No comments:

Post a Comment