LinuxQuestions.org
Visit Jeremy's Blog.
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 08-01-2004, 01: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, 02:04 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
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, 02: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 02:22 PM.
 
Old 08-01-2004, 07: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, 02: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, 07:50 AM   #6
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
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



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

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

All times are GMT -5. The time now is 01:39 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
Open Source Consulting | Domain Registration