LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-21-2005, 09:28 AM   #1
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Rep: Reputation: 15
stupid newbie vim :q question


how do you exit from vim in slackware??? :q is not working and I found the following on the web, which is weird:

Auto-installing package ==>vim<== Priority: [optional]
vim: Version 5.5 of Vim: Vi IMproved
vim:
vim: Vim is an almost compatible version of the UNIX editor vi. Only the
vim: 'Q' command is missing (you don't need it). Many new features have
vim: been added: multi level undo, command line history, filename
vim: completion, block operations, etc.
vim:
Size: Compressed: 1263K, uncompressed: 3830K.
Installing package vim...
Executing installation script for package vim...
Done installing package vim.

if the q command is missing, how do you exit vim???

google did not give any solution!
 
Old 09-21-2005, 09:30 AM   #2
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
Are you sure you're not using a Capital q ?
Are you sure you're in the right vi(m) mode ?

you can also use ZQ (don't save and exit) or ZZ (save and exit)
 
Old 09-21-2005, 09:31 AM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You could try :q! to exit without saving changes or :wq to save changes. Not sure if it means missing the :q command or if it means any command with q in it.
 
Old 09-21-2005, 09:37 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You probably checked this already, but slackware uses elvis (linked to vi) by default.

Are you actually using vim or vi (elvis)?

Another question: You installed vim 5.5, why an 'old' version? Although this could not help with your current problem, you should consider upgrading to 6.x.

Hope this helps.
 
Old 09-21-2005, 09:48 AM   #5
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
sorry for the misunderstanding;
I'm using slackware 10.2 with its vim installed, but I got the log from a web site, thinking that it may be related to my problem.
I know about the vi -> elvis issue
I do (for example)
vim xorg.conf
after it opens up the file,
:q
does not work and gives an error (I do not remember the specific error)
:q!
does not work, gives same error
even
:w
does not work, gives same error
I did not modify anything in Slackware except the default kernel (to 2.6.13).
I should be forgetting about something incredibly stupid, but what?
 
Old 09-21-2005, 11:39 AM   #6
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
does not work and gives an error (I do not remember the specific error)
Then find out.

Quote:
I should be forgetting about something incredibly stupid, but what?
Not telling us either (1) why you didn't try the suggestions (:q!, :wq, ZZ, ZQ) or (2) what the result was.

Read ESR's `Smart Questions'.
 
Old 09-21-2005, 12:24 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try copying the default config file: cp /usr/share/vim/vim63/vimrc_sample.vim ~/.vimrc
 
Old 09-21-2005, 11:46 PM   #8
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
that worked. thanks so much. I wonder how I messed up the config file though never mind
 
  


Reply



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
stupid newbie question aznboi12321 Fedora 3 03-01-2005 12:10 PM
Extremely stupid question about tab key (specifically in Vim) Imek Linux - Newbie 1 03-08-2004 05:11 PM
a stupid question, but i am a newbie !!! timmy toad Linux - Newbie 2 09-20-2003 01:36 PM
Stupid Newbie Question Shadowman2oo3 Linux - Newbie 2 08-27-2003 06:55 PM
Another stupid newbie question linuxchick Linux - Newbie 1 03-01-2002 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:27 PM.

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
Open Source Consulting | Domain Registration