LinuxQuestions.org
Visit Jeremy's Blog.
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 11-27-2005, 04:30 PM   #1
electronjunkie
LQ Newbie
 
Registered: Nov 2005
Distribution: Slack, Fedora, whatever
Posts: 2

Rep: Reputation: 0
Trouble with vim in Slackware


Hi all,

I'm getting frustrated with vim in Slackware and I would like someone to point me in the right direction.

I've used vim in Redhat for a long time and so when I start using vim in Slackware I find few operations work the way I expect and I run away screaming! I also find that when using vim in Slackware I get different operation when local versus remote over ssh.

One example of a difference between my Redhat experience and my Slackware experience is that when in Insert mode in Redhat I can use the arrow keys to navigate around, use backspace, delete, etc just like pico or notepad. However, with vim in Slackware using the arrow keys, backspace, or delete seem to either bump me out of insert mode or do something equally unexpected.

What I'd like to do is bring my vim experience on Slackware in line with my Redhat knowledge and also get the local and remote access to behave the same way. I assume two config files need to be changed for this to occur; vimrc and something for ssh?

Am I on the right track? Can someone explain why these differences occur?

Thanks for the help,

Electronjunkie

Last edited by electronjunkie; 11-27-2005 at 04:37 PM.
 
Old 11-27-2005, 04:36 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,820

Rep: Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960
You need a proper .vimrc I think

Try :
cp /usr/share/vim/vim63/vimrc_example.vim ~/.vimrc
 
Old 11-27-2005, 04:39 PM   #3
electronjunkie
LQ Newbie
 
Registered: Nov 2005
Distribution: Slack, Fedora, whatever
Posts: 2

Original Poster
Rep: Reputation: 0
Bless you Keefaz, that did it nicely.

Thanks for the help.
 
Old 02-17-2006, 04:04 PM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by keefaz
You need a proper .vimrc I think

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

***BUMP***

Instead of creating a new thread, I searched and found this one...

I've copied over the vimrc_example.vim to my home directory, but I don't have .vimrc...and I'm still not getting vim to work correctly.

What do I need to do to get this working ok?

thanks
 
Old 02-17-2006, 04:29 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I've copied over the vimrc_example.vim to my home directory, but I don't have .vimrc...and I'm still not getting vim to work correctly.
Did you rename the file to .vimrc? Also, verify the file is owned by the user account.
 
Old 02-17-2006, 04:39 PM   #6
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Woodsman
Did you rename the file to .vimrc? Also, verify the file is owned by the user account.
Didn't realize that I needed to rename the file to .vimrc, thanks!

Odd thing, I don't have a .bashrc under my homedirectory, should this be a problem?

thanks
 
Old 02-17-2006, 05:26 PM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Didn't realize that I needed to rename the file to .vimrc, thanks!
Yeah, I agree, not entirely obvious to somebody doing that for the first time, but thereafter usually is very obvious!

Quote:
Odd thing, I don't have a .bashrc under my home directory, should this be a problem?
Depends upon your definition of "problem." See if this helps:

Harmonizing the Bash Startup Scripts
 
Old 02-17-2006, 06:11 PM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Woodsman

Depends upon your definition of "problem." See if this helps:

Harmonizing the Bash Startup Scripts
Sweet! Thanks for the help and the URL.
 
Old 02-17-2006, 07:05 PM   #9
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by Woodsman
not entirely obvious to somebody doing that for the first time, but thereafter usually is very obvious!
The Linux learning curve in a nutshell!

The road to CLUE has many potholes.
 
Old 02-17-2006, 07:28 PM   #10
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
Thanks a lot for that, I was tearing my hair out on vim. Now it's working perfectly

-A
 
Old 02-17-2006, 07:31 PM   #11
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Just for the records, copying that file to /usr/share/vim/vimrc will make it default to all users.
 
  


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-16-2010 11:28 PM
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 09:00 AM
Strange Vim settings under Slackware 10 Lars79 Slackware 5 08-02-2004 07:50 AM
VIM under Slackware 9.1 kittani Linux - Software 5 06-16-2004 05:02 AM
Slackware Trouble Scythe Slackware 9 09-06-2003 04:33 PM

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

All times are GMT -5. The time now is 01:59 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