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.
|
 |
04-11-2006, 10:04 AM
|
#1
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
|
vi
Hallo,
I just installed slackware 10.2 on one of the boxes at work (not connected to the internet)
I have been doing some work in vi editor, however it
behaves in a strange way. What I mean is delete, backspace, tab, and navigation keys don't work in a normal way. Sometimes they work, sometimes not. When
I use backspace, I can still see the letters that should have been erased, then I have to press delete
to get rid of them.
I have some experience using vi. I have been using it for half a year at home on Fedora Core and Centos.
Nothing like that has ever happened on them.
What's the reason for this? How can I fix it?
The other problem is how can I add colour support
for C syntax in vi. I have it on Fedora and Centos.
Thanks
|
|
|
04-11-2006, 10:32 AM
|
#2
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
Try `vim` instead of `vi`. If you did a full install, it'll be available.
|
|
|
04-11-2006, 10:51 AM
|
#3
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Original Poster
|
I definitely did a full install, but vim hasn't helped much 
the same problems with navidating, deleting
and no colours for C
|
|
|
04-11-2006, 12:22 PM
|
#4
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
Create ~/.vimrc with the following contents:
Code:
set nocompatible
set backspace=indent,eol,start
set nobackup " do not keep a backup file, use versions instead
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
syntax on
set hlsearch
set autoindent " always set autoindenting on
set expandtab
set tabstop=4
set shiftwidth=4
|
|
|
04-12-2006, 04:20 AM
|
#5
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Original Poster
|
Thanks, however, unfortunately, it didn't help much. There is some syntax highlihted, though  But still, navigation and deletion work funny.
Anyway, I'll probably switch to emacs at work. thanks for your help
|
|
|
All times are GMT -5. The time now is 04:06 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
|
|