You are not logged in.

#1 2011-06-03 23:02:19

sepuku
Member
From: HELL
Registered: 2010-12-12
Posts: 35

[SOLVED]Can't save a file with tex extension using vim

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

#2 2011-06-03 23:06:34

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [SOLVED]Can't save a file with tex extension using vim

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

#3 2011-06-04 00:08:06

sepuku
Member
From: HELL
Registered: 2010-12-12
Posts: 35

Re: [SOLVED]Can't save a file with tex extension using vim

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

#4 2011-06-04 00:11:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Can't save a file with tex extension using vim

Did you create the /home/sepuku/latexprojects directory as root? Use 'chmod' to change file permissions.

Offline

#5 2011-06-04 00:49:06

sepuku
Member
From: HELL
Registered: 2010-12-12
Posts: 35

Re: [SOLVED]Can't save a file with tex extension using vim

Thank you Karol chmod did it for me! smile

Offline

Board footer

Powered by FluxBB