LinuxQuestions.org
Register a domain and help support LQ
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 08-01-2004, 02:59 PM   #1
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Rep: Reputation: 15
Strange Vim settings under Slackware 10


HI,

I have a fresh installation of Slackware 10 and problems using Vim. I'm new to Linux but used Vim on my Debian 3.0 router without any problems. When I use Vim on my Slackware system there are lots of strange things going on. For example:

- I have no -- Insert -- in the lower left corner when in Insert mode
- Cursor keys print letters when in Insert mode
- Backspace doesn't work as expected
and so on...

An echo $TERM on both system is set to xterm. There is no .vimrc in the root/user folders, even slocate can't find one. I searched the forum and google but couldn't find a solution for that. It would be nice if someone had a solution how to make Vim act the "normal" way, because I don't want to switch to another editor. Thanks a lot =).

Lars
 
Old 08-01-2004, 03:04 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Try to begin with a workable config :

cp /usr/share/vim/vim63/vimrc_example.vim ~/.vimrc

Then adapt it to suit your needs
 
Old 08-01-2004, 03:17 PM   #3
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
Thank you very much. I will try that =).

Edit: Works great.. Thanks =).

Last edited by Lars79; 08-01-2004 at 03:22 PM.
 
Old 08-01-2004, 08:15 PM   #4
Ninaw
Member
 
Registered: Jun 2004
Location: QC, Philippines
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
You're not experiencing anything strange. It's just the default configuration. Slackware expects its users to configure things first so that the user knows what it's all about and doesn't get confused when using another system.

Read the vim manual pages and the built-in help. Virtually any behavior can be modified to suit your needs. It's actually a lot of fun to make Vim submit to your demands.

If you're lazy try to find a config file in http://dotfiles.com/
 
Old 08-02-2004, 03:52 AM   #5
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
Hi Ninaw,

thanks for your reply. I use the example configuration that Cedrik suggested. I changed a few things but it is a quite good basis to work with. I really like the Slackware behavior to let the user configure everything. The problem with Vim was that is was, at least for me, nearly unusable in the default configuration. Because I never experienced that before (under Debian it ist already configured from the beginning on), I didn't know how to change that, which of course was my fault and not Slackware's. Because I never used another editor like joe or nano on the shell I also didn't want to switch. Because of that I had problems to edit configuration files before having X. Thanks to you guys, I will know what to do next time =).
 
Old 08-02-2004, 08:50 AM   #6
dunric
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 479

Rep: Reputation: 87
What are you seeking for is nocompatible option, so in your ~/.vimrc you may have:

set nocompatible

I like Slackware too, because all apps & kernel are in stock/pristine form waiting to tweak them to your needs
 
  


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
elvis point to vim in slackware slackwaresux Linux - General 7 12-17-2010 12:28 AM
Trouble with vim in Slackware electronjunkie Slackware 10 02-17-2006 08:31 PM
vim acting strange littlemidget Debian 6 09-17-2004 12:52 PM
VIM under Slackware 9.1 kittani Linux - Software 5 06-16-2004 06:02 AM
simple vi (vim) settings lenlutz Linux - General 20 10-04-2003 05:40 AM


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

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