tags:

views:

579

answers:

2

Is there any way to specify a width when doing :vsplit? Also, is there a way to increase or decrease the width on a vertically splitted window? Ctrl-w + and Ctrl-w - seems to be working on only horizontally split windows.

+2  A: 

According to :help :vsplit, it takes an optional numeric argument as a prefix, e.g., :80vs. Try it out!

Edit: I guess I forgot to mention. You can control the width with Ctrl-W < and Ctrl-W >

For more info, read the manual at :help windows

Luis
Thanks, I didn't know you can prefix a number to the command, n00b ;)
No problem, heh. Vim is one of those editors where pretty much everyone is a newb. You just keep learning new stuff about it all the time :)
Luis
Wow, I had no clue about this command...usually I just used the built in tabs in gVim and that could be a bit of a pain.
espais
A: 

is there anyway to run this from the commandline?

i'd like to be able to do something like:

vim -O fileA fileB

but have the left side be narrower (ala 40vsp).

thanks.

anon