The simplest way would be to add if argc() == 2 silent all endif to your .vimrc.
That works great except for one thing, I get a Press ENTER or type command to continue is there any way to avoid that prompt?. Thanks – Sam Brinck Sep 15 at 17:59 Yep, silent fixes it. – Josh Lee Sep 15 at 18:23.
Maybe you can try vim -o2 file1 file2 file3... I know it isn't perfect solution to you (in this case vim opens everytime two windows). But you can write (and use) a small script like this if $# -ge 2 ; vim -o2 $* else vim $* fi Almost perfect ;).
Perhaps could set up something in shell script like this: #! /bin/bash if "$#" -eq "2" then /usr/bin/vim -o $1 $2 else /usr/bin/vim $* fi If you are feeling a bit fancy then you could do something more complex, by looping through the parameters and checking if any are options and ignoring them.
I thought about doing it that way but would rather have it in my vimrc. If I don't get any other ideas I'll accept that one. Thanks – Sam Brinck Sep 15 at 17:55.
I accomplish the same thing, from the command-line alone, by adding to my vim command -c 'split | bn'. I can open as many files as I like in the same command; -c tells it to run a command, then in the single-quotes, 'split | bn' tells vim to split the window, then switch to the next buffer. Then gvim opens with the first two files, foo1.
Cpp and foo2. Cpp, in the split windows. I like this way because I don't have to modify my .
Vimrc (so I can use it on any machine), and it's still concise enough for the command-line. Note: I've only tested this in gvim, not vim in a terminal.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.