On Wednesday, June 17, 2015 at 9:58:35 PM UTC-5, David Fishburn wrote:
> 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 suggest using the --remote commands as you were trying. But the -O switch doesn't work with --remote. You will need to be more creative, opening a new window in another way and starting the diff manually. Something like:
gvim --servername gDiff --remote-tab-silent file1.txt
gvim --servername gDiff --remote-send ":diffsplit <C-R>=fnameescape('file2.txt')<CR><CR>"
(Adapted from a .bat file I use in my "send to" menu on Windows, for choosing files one at a time for diff).
-- 
-- 
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.
Thursday, June 18, 2015
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment