LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-13-2012, 01:20 AM   #1
subharaj
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Exclamation Trying to edit a .spec file in vim (E212: Can't open files for writing)


when i am going to edit vim rpmbuild/SPECS/test.spec dat its showing (E212:Can't open files for writing) so what to do plzzzzzzz help
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-14-2012, 03:14 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

This error (E212) tells you that you do not have permissions to (over)write the file you are trying to edit. The file probably isn't owned by the user that runs vim.

BTW: You can get more details on a Vim error by typing (in command mode) :help ERRORNUMBER.
:help E212 would show you the following:
Quote:
Cannot open "{filename}" for writing
Can't open file for writing

For some reason the file you are writing to cannot be created or overwritten.
The reason could be that you do not have permission to write in the directory
or the file name is not valid.
Hope this helps.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VIM: Split open same file and edit only 1 window encore4444 Programming 8 05-14-2011 10:40 PM
RPM Spec files writing issues PMP Linux - Newbie 2 04-16-2009 03:19 AM
writing spec file munna_dude Programming 3 08-18-2007 05:17 AM
writing spec file for RPM to move files Help Me Linux - Newbie 2 05-08-2006 12:58 PM
questions on writing own rpm .spec file adrianmak Linux - Software 0 08-18-2005 06:03 AM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration