Windows 8.1 64-bit using a 32-bit gVim 7.4.1-729.
I use gVim for diffing from my source control system using:
gvim.exe -O -d file1.txt file2.txt
This works great.
I was hoping to extend this a bit.
When I diff a changelist, it runs the above command on all files in the changelist. This might open 10 gvim instances.
What I was hoping to achieve was opening 1 instance of Vim.
For each set of files to compare, open a new tab for just those 2 files.
Start diffmode just in that tab for those 2 files.
I have tried running various command lines:
$ gvim -O -d dave.js dave_2.js
$ gvim -O -d --remote-tab-silent dave.js dave_2.js
$ gvim -O -d --servername gDiff --remote-tab-silent dave.js dave_2.js
$ gvim -O -d --servername gDiff -p1 dave.js dave_2.js -h
$ gvim -O -d --servername gDiff -p1 dave.js dave_2.js
$ gvim -O -d --servername gDiff -p2 dave.js dave_2.js
$ gvim -d --servername gDiff -p1 dave.js dave_2.js
$ gvim -d --servername gDiff -p1 dave.js dave_2.js
$ gvim --servername gDiff -p1 -d dave.js dave_2.js
$ gvim --servername gDiff -d dave.js dave_2.js
$ gvim --servername gDiff -d tim.js tim_2.js
$ gvim --servername gDiff -o2 tim.js tim_2.js
$ gvim --servername gDiff -O2 tim.js tim_2.js
$ gvim --servername gDiff tim.js tim_2.js
$ gvim --servername gDiff dave.js dave_2.js
$ gvim --servername Diff dave.js dave_2.js
$ gvim --servername Diff tim.js tim_2.js
$ gvim -f --servername Diff dave.js dave_2.js
$ gvim -f --servername Diff tim.js tim_2.js
$ gvim -f --servername Diff tim.js tim_2.js
Strangely, when 2 files are specified, it never uses the same Vim instance, it start another.
None of these ever really get me any close to what I want to achieve.
I assume I will need to write my own batch / cmd file and function to get where I want.
Just looking for opinions.
TIA,
David
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment