Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-19-2011, 05:13 PM
|
#1
|
|
Member
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47
Rep:
|
Basic question concerning vim
Here's what is going on; I'll open any file in vim to edit, and then when I'm finished and I enter ":wq", instead of saving the file I was editing, vim creates another by the same name with a tilde.
Any solutions?
|
|
|
|
07-19-2011, 05:19 PM
|
#2
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,118
|
Vim actually is saving your file, but also creates a backup of the old file. That is the file with the tilde.
|
|
|
|
07-19-2011, 05:22 PM
|
#3
|
|
Member
Registered: Jan 2009
Distribution: Debian
Posts: 59
Rep:
|
Code:
bash$ ls ~/tmp
bash$ vim ~/tmp/test.txt
<edit file and :wq or :x out of vim>
bash$ ls ~/tmp
test.txt
bash$ vim ~/tmp/test.txt
<edit file and :wq or :x out of vim>
bash$ ls ~/tmp
test.txt
test.txt~
something like that? the ~ version is a backup. search "vim turn off backup" at a search engine of your choice, that should help.
|
|
|
|
07-19-2011, 07:27 PM
|
#4
|
|
Member
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Slackware64-13.37
Posts: 47
Original Poster
Rep:
|
Figured it out, thanks for the help.
Last edited by ADX; 07-19-2011 at 07:34 PM.
|
|
|
|
07-19-2011, 07:30 PM
|
#5
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,118
|
Just create a .vimrc in your home-folder and add that option.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:22 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|