Timeline for How do I save a read-only file in Vim for Windows?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 2, 2016 at 23:51 | vote | accept | Durga Swaroop | ||
Feb 25, 2016 at 13:55 | comment | added | rolinger | Thanks @dash-tom-bang, I've added reference to that good example in my answer. | |
Feb 25, 2016 at 13:54 | history | edited | rolinger | CC BY-SA 3.0 |
Added link to Windows-protected files
|
Feb 24, 2016 at 23:14 | comment | added | dash-tom-bang |
Editing files inside of the Program Files hierarchy for instance, :w! doesn't fly and you must run gVim as an administrator or run Vim in an command prompt that was run as administrator.
|
|
Feb 24, 2016 at 9:38 | comment | added | Cylian |
@DurgaSwaroop: The parent process must be run as administrator to complete its sub-process involving administrative tasks to do... Please have a look at windows.microsoft.com/en-in/windows/… .... otherwise disable UAC settings....
|
|
Feb 24, 2016 at 9:33 | comment | added | Durga Swaroop | @Cylian, Yeah, That would obviously work. But, When i didn't open as administrator and am editing a system file, there should be a way to still save the file, like the way its possible in Linux. | |
Feb 24, 2016 at 9:30 | comment | added | Cylian |
@DurgaSwaroop: Have you tried opening gvim as Run as Administrator ? Perhaps it would solve your purpose... or otherwise it might be possible that the file is being locked by another application...
|
|
Feb 23, 2016 at 12:17 | comment | added | Durga Swaroop |
My account is set as the Admin but :w! is not working. It says can't open file for reading. Though i can do the exact same thing outside of vim.
|
|
Feb 23, 2016 at 11:56 | review | First posts | |||
Feb 23, 2016 at 12:22 | |||||
Feb 23, 2016 at 11:54 | history | answered | rolinger | CC BY-SA 3.0 |