Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
|
05-20-2004, 10:36 AM
|
#1
|
Member
Registered: Dec 2003
Location: Tavistock, Devon, England
Distribution: Slackware 9.1, LFS 5.0, Mandrake 9.0/9.1/10.0, Knoppix 3.1, Windows 98SE, Windows XP Pro
Posts: 37
Rep:
|
VIM Setup- No 'insert' mode
My text editor of choice is VIM. In Mandrake it worked fine out of the box, but I have just installed Slackware and there is one major problem: I cannot properly edit text. Considering you can't really edit any config files without one, a working text editor could be quite useful (I would have thought that both the developers of slackware and vim would have made sure it worked properly on install). I have read the first few lines of the 'getting started' section of the vim manual and failed on the first hurdle. It says press 'i' to switch from normal mode to insert mode. Pressing 'i' does nothing. In mandrake the insert key worked as well and '--INSERT--' or '--REPLACE--' would appear in white in the lower left of the screen. The insert key also does nothing- in fact, I have pressed every key on the keyboard and cannot enter insert mode.
Please help- I cannot really setup anything else until this is fixed.
Simon
|
|
|
05-25-2004, 10:44 AM
|
#2
|
Member
Registered: Dec 2003
Location: Tavistock, Devon, England
Distribution: Slackware 9.1, LFS 5.0, Mandrake 9.0/9.1/10.0, Knoppix 3.1, Windows 98SE, Windows XP Pro
Posts: 37
Original Poster
Rep:
|
OK, in case anybody else has the same problem here is the solution I found:
Since version 5.0, VIM runs in Vi compatible mode by default, unless you have a '.vimrc' file in your home directory. There are other exceptions (see the VIM readme), so for simplicity, create a '.vimrc' file in your home directory and add the following line:
set nocompatible
(to temporarily change the setting whilst VIM is running type ":set nocompatible" <enter>)
You will probably notice that even in nocompatible mode, backspace does not function as you would expect it to. To fix this, add the following line into your .vimrc file:
set backspace=2
(this is a short version of "set backspace=indent,eol,start")
|
|
|
All times are GMT -5. The time now is 04:43 PM.
|
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
|
|