Re: Vertical splits

2006-05-15 Thread Yakov Lerner

Salman,
Try the following patch.

--- ex_docmd.c.000  2006-05-15 16:04:10.0 +
+++ ex_docmd.c  2006-05-15 16:03:36.0 +
@@ -1709,6 +1709,7 @@
 */
save_cmdmod = cmdmod;
vim_memset(&cmdmod, 0, sizeof(cmdmod));
+cmdmod.split |= WSP_VERT;

/*
 * Repeat until no more command modifiers are found.

Realistically, you'd 'set vertical' options or something.

Yakov

On 5/15/06, Salman Khilji <[EMAIL PROTECTED]> wrote:

Regarding my previous post, I would like to change teh
default behavior of VIM to prefer vertical splits
instead of horizonal splits.

I not only want to change C-W ] command, but all
commands that have to split a window.  Whats the
quickest way to make this change?

I am thinking along the lines of editing the VIM
source code and searching for somehting like
"vertical_split()" and "horizontal_slit()" functions
and interchanging them.


Re: Vertical splits

2006-05-15 Thread mzyzik
You can always do a :vertical before the command, and whenever there is
a split inside the command, the split will be vertical.

--Matt

On Mon, May 15, 2006 at 05:27:29AM -0700, Salman Khilji wrote:
> Regarding my previous post, I would like to change teh
> default behavior of VIM to prefer vertical splits
> instead of horizonal splits.
> 
> I not only want to change C-W ] command, but all
> commands that have to split a window.  Whats the
> quickest way to make this change?
> 
> I am thinking along the lines of editing the VIM
> source code and searching for somehting like
> "vertical_split()" and "horizontal_slit()" functions
> and interchanging them.
> 
> Salman
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com