Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-27-2005, 04:30 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Distribution: Slack, Fedora, whatever
Posts: 2
Rep:
|
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.
|
|
|
11-27-2005, 04:36 PM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,820
|
You need a proper .vimrc I think
Try :
cp /usr/share/vim/vim63/vimrc_example.vim ~/.vimrc
|
|
|
11-27-2005, 04:39 PM
|
#3
|
LQ Newbie
Registered: Nov 2005
Distribution: Slack, Fedora, whatever
Posts: 2
Original Poster
Rep:
|
Bless you Keefaz, that did it nicely.
Thanks for the help.
|
|
|
02-17-2006, 04:04 PM
|
#4
|
Senior Member
Registered: Jan 2004
Posts: 1,420
Rep: 
|
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
|
|
|
02-17-2006, 04:29 PM
|
#5
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
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.
|
|
|
02-17-2006, 04:39 PM
|
#6
|
Senior Member
Registered: Jan 2004
Posts: 1,420
Rep: 
|
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
|
|
|
02-17-2006, 05:26 PM
|
#7
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
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
|
|
|
02-17-2006, 06:11 PM
|
#8
|
Senior Member
Registered: Jan 2004
Posts: 1,420
Rep: 
|
Quote:
Originally Posted by Woodsman
|
Sweet! Thanks for the help and the URL.
|
|
|
02-17-2006, 07:05 PM
|
#9
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
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. 
|
|
|
02-17-2006, 07:28 PM
|
#10
|
Member
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386
Rep:
|
Thanks a lot for that, I was tearing my hair out on vim. Now it's working perfectly
-A
|
|
|
02-17-2006, 07:31 PM
|
#11
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
Just for the records, copying that file to /usr/share/vim/vimrc will make it default to all users.
|
|
|
All times are GMT -5. The time now is 01:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|