Saturday, June 7, 2014

Re: How to start vimdiff?

On 2014-06-07 05:36, wolfv wrote:
> Thanks. "vim -d" worked.
> The important thing is that it works.
> Just curious why "vimdiff" gets an error.
> The manual says, "The easiest way to start editing in diff mode is
> with the "vimdiff" command."
>
> Here is what I get from the Command Prompt:
>
> C:\>vimdiff a.txt b.txt
> 'vimdiff' is not recognized as an internal or external command,
> operable program or batch file.

I believe that, when you install Vim on Win32, it creates
several .bat files to perform this functionality. You may not have
that directory on your $PATH (which you can check at the command-line
with the "path" command). In the version I have, it drops the .bat
files in c:\windows which is on my path. So I'd scan your hard-drive
for "vimdiff.bat" and make sure that directory is in your PATH which
can be set in

Control Panel
-> System Properties tab
-> Environment Variables button

Additionally, if you use ":diffsplit", I recommend prefixing it with
"vert" to get the behavior you're used to:

:vert diffsplit otherfile.txt

-tim


--
--
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