Quantcast
Channel: Vim Error 'E212: Cannot open file for writing', when trying to create new files outside of home dir - Unix & Linux Stack Exchange
Browsing all 4 articles
Browse latest View live

Answer by Jakeimo for Vim Error 'E212: Cannot open file for writing', when...

Thanks for the answers. I ended up solving the issue by changing the the folder owner to myself, using chown. This resulted in me not having to use sudo everytime I wanted to create/edit a file.

View Article


Answer by Sepero for Vim Error 'E212: Cannot open file for writing', when...

You need to run vim as root.sudo vim /var/www/file

View Article

Answer by nikhil mehta for Vim Error 'E212: Cannot open file for writing',...

Sorry I am not able to comment yet. Try to run command :sudo -s by this you will login as root. Then, I guess, you can do whatever work you want to.

View Article

Vim Error 'E212: Cannot open file for writing', when trying to create new...

I am running Wheezy Debian. When I try to create a new file in a directory other than my home directory, such as /var/www, I get the following error in vim:E212: Cannot open file for writing.I assume...

View Article
Browsing all 4 articles
Browse latest View live