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
2009-09-07 08:43:38
Thanks, I didn't know you can prefix a number to the command, n00b ;)
2009-09-07 08:48:20
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
2009-09-07 08:52:26
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
2009-09-07 09:08:33
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
2010-01-25 14:36:13