Unix command editor vi.exe does not open a file in windows 7

February 28, 2013 at 03:45:54
Specs: Windows 7
on command line i type vi abc.txt but only an error msg comes
"cant create temp file" earlier i successfully worked with vi on windows xp
do i need to do any set up?

See More: Unix command editor vi.exe does not open a file in windows 7

Report •

#1
February 28, 2013 at 07:24:02
What type of file are we talking about here?

As far as I know, the only "windows" type file vi will open would be a basic .txt (text) file. I doubt it can open an .rtf, .doc. or .docx

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

#2
February 28, 2013 at 07:33:13
Unix command editor vi.exe does not open a file in windows 7
Well there's your problem, you're trying to use a Unix utility on a completely different OS. Try Notepad++.

That said, my guess is your vi is trying to write a temporary file to its program directory. This is bad behavior in Unix, and it's bad behavior in Windows. The difference is Win7 punishes programs for this in a way WinXP never did. If you want vi to work from Win7, try running it from an elevated command prompt. Or, you know, pick a utility native to your environment and expand your horizons and whatnot.

How To Ask Questions The Smart Way


Report •

#3
February 28, 2013 at 07:44:20
I'm not sure where the Windows version of vi writes its temporary files by default, but Razor could be right that it is trying to use the program directory (in which case it would probabl work if you did "Run as administrator".

Probably the best thing to do is th change the location of the temporary files to a directory that you have write access to. Have a look at this link http://alvinalexander.com/linux-uni...

@Curt R - as you say, vi won't be able to open .doc or docx files - well not in any sensible matter - but .rtf files would be no problem; they are plain text.

I've got to say that you've got to be a bit of a masochist to use vi on Windows!


Report •
Related Solutions


Ask Question