On Wednesday, December 19, 2012 3:52:01 AM UTC-6, Boris Danilov wrote: > Hello! Vim is great editor, but I have some trouble when working under normal > > user account and editing files in places with restricted access (like > > Program Files and etc.). Is there a way to make Vim elevate access rights > > when saving a file? I want Vim to display me the UAC dialogue where I must > > confirm the operation instead of giving me a message that write failed? Is > > there anything I can do without running Vim under administrator privilegies > > or disabling UAC? > > > >
I'm pretty sure you're stuck launching Vim with admin privileges. You might be able to hack something together with one or more of these search results: https://www.google.com/search?q=windows+sudo+command But doing that you'd need to bypass Vim's normal write mechanisms, probably with a BufWriteCmd autocmd. I think you're better off just launching Vim with admin rights, as people basically do on Linux when editing system files (using "sudo" to give root access). -- 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
