You are not logged in.
Hello there people,i decided to learn LATEX but vi won't let me save my files with the tex extension.It says:
"test.tex" E212: Can't open file for writing
Does anyone know why vim is denying to save it with this extension?Please help!
Last edited by sepuku (2011-06-04 01:21:44)
Offline
I just did this test:
touch test.tex
vim test.tex
(edited file)
:x
No errors here. I suspect something wrong with your permissions or your .vimrc file . Show us the output of "ls -al test*" .
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
I just noticed that when i'm in /home/sepuku i'm able to save the files normally.But i created a directory specially for latex!
So when i cd /home/sepuku/latexprojects i can't save anything.I think that this has something to do with the permissions maybe?And how to i make my user able to copy/paste/remove /edit/create files and dirs? :S
ls -al test.tex returns:
-rw-r--r-- 1 sepuku users 70 Jun 4 06:01 test.tex
Offline
Did you create the /home/sepuku/latexprojects directory as root? Use 'chmod' to change file permissions.
Offline
Thank you Karol chmod did it for me!
Offline