Thursday, June 12, 2014

Re: vimdiff noob question

On Thursday, June 12, 2014 8:43:13 AM UTC-6, Ben Fritz wrote:
> On Wed, Jun 11, 2014 at 11:04 PM, wolfv wrote:
>
> > On Wednesday, June 11, 2014 10:02:12 PM UTC-6, wolfv wrote:
>
> >> On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote:
>
> >> > On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv wrote:
>
> >> > > > Can you use vimdiff, from C:\Users\wolf\Documents (rather than My Documents)?
>
> >> > >
>
> >> > > I am using Windows 7.
>
> >> > > From Command Prompt:
>
> >> > > C:\Users\wolf\Documents>vim -d a.txt b.txt
>
> >> > > This pops up:
>
> >> > > C:\PROGRA~2\Vim\vim74\vim.exe is not a valid Win32 application.
>
> >> > > I click "OK" and Command Prompt says:
>
> >> > > Access is denied.
>
> >> >
>
> >> > Yeah that's probably a different problem. You can try running vim.exe in compatibility mode.
>
> >> >
>
> >> > Does "gvim -d a.txt b.txt" work from that directory? How about "gvimdiff a.txt b.txt"?
>
> >>
>
> >> Yes, that works (screen shot attached).
>
> >> So it was the just the fake "My Documents" directory the whole time.
>
> >>
>
> >> I vaguely remember when I first got Windows 7, I renamed "My Documents" to "Documents", then later Windows automatically changed it back to "My Documents", and I left it that way.
>
> >>
>
> >> Thank you for sticking with me through so much trouble shooting. Your help is is much appreciated.
>
> >
>
> > both "gvim -d a.txt b.txt" and "gvimdiff a.txt b.txt" work from Documents:
>
> > C:\Users\wolf\Documents>gvim -d a.txt b.txt
>
> >
>
> > C:\Users\wolf\Documents>gvimdiff a.txt b.txt
>
> >
>
>
>
> Great!
>
>
>
> So, are you happy using just gvim? Or do you still want help getting
>
> vim.exe running? You may want to create a new thread for that if you
>
> do, I'm not sure how to go about fixing that one. I had a similar
>
> problem, which went away on its own when I gained admin rights:
>
>
>
> http://stackoverflow.com/q/23478373/1390430
>
>
>
> But looking at the error text now, it differs from the one you're
>
> getting, so perhaps it is a completely different issue.

Both Vim and gVim are now working in my "Documents" folder.
Below is how I removed fake "My" folder names, maybe it will help someone else.

How to remove fake "My" folder names
"My Documents" folder name messes up vimdiff
Windows 7 features fake folder names:
My Documents
My Music
My Pictures
My Videos
The command Prompt displays their real names:
C:\Users\wolf>dir
06/11/2014 10:02 PM <DIR> Documents
05/15/2014 06:57 AM <DIR> Music
06/09/2014 06:33 PM <DIR> Pictures
05/15/2014 06:57 AM <DIR> Videos
The desktop.ini file in these folders is telling Windows Explore to display the fake names.
To stop this nonsense, first set Folder Options to show .ini files:
Folder Options > View tab >
select: Show hidden files
uncheck: Hide protected operatings system files
click "Apply"
Then edit the desktop.ini files:
Go to the offending directory and open the desktop.ini file.
Comment the line that starts with "LocalizedResourceName".
A semicolons (;) at the beginning of the line indicates a comment.
The correct folder names will be displayed the next time you login.

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