LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-31-2009, 02:53 PM   #1
449
Member
 
Registered: Nov 2007
Posts: 104

Rep: Reputation: 15
Noob needs help with Vim!!!


Ok so all I have to edit my source list is vim and I managed to copy and paste what I need, but I can't for the love of teh interwebz figure out how to save the damn file!

Help would be greatly appreciated.

Screenshot: http://img84.imageshack.us/img84/333/snapshot1dr6.jpg

EDIT: I forgot about kdesu :embarrassed:

[SOLVED]

Last edited by 449; 01-31-2009 at 03:04 PM.
 
Old 01-31-2009, 03:16 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
ALT:wq
 
Old 01-31-2009, 03:32 PM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,179

Rep: Reputation: 107Reputation: 107
If it's just like Vi, wouldn't :wq actually be "save" and quit, and :w as "save" o.O? I believe it's w for "Write out"
 
Old 01-31-2009, 03:35 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
yes it is very much like vi. :w is write but stay in the file while :wq is write quit. and :q! is disregard all changes.
 
Old 02-02-2009, 02:57 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
and

:x

means save+exit
 
Old 02-02-2009, 03:05 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
or you could try nano which is also used on a terminal but has the advantage of giving you a small menu of common commands at the bottom. Great for people with bad memories like me ;-)
cheers,
jdk
 
Old 02-02-2009, 07:33 AM   #7
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 813

Rep: Reputation: 195Reputation: 195
Generally, I prefer :wq to :x for one reason only.

:X+<Enter> is encrypt (on Solaris which I have to use in my office) with some key and you cant get back the original text file.

End
 
  


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
PS3 YDL NOOB (linux NOOB completly) korn_16_f_t_l Linux - Newbie 1 07-09-2008 12:32 PM
VIM Users: Do you use VIM via console or gui? JMJ_coder Linux - General 48 04-16-2008 04:12 AM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 02:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-18-2006 12:54 AM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 01:03 AM


All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration