LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-11-2006, 10:04 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
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
 
Old 04-11-2006, 10:32 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Try `vim` instead of `vi`. If you did a full install, it'll be available.
 
Old 04-11-2006, 10:51 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
I definitely did a full install, but vim hasn't helped much
the same problems with navidating, deleting
and no colours for C
 
Old 04-11-2006, 12:22 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
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
 
Old 04-12-2006, 04:20 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Thanks, however, unfortunately, it didn't help much. There is some syntax highlihted, thoughBut still, navigation and deletion work funny.
Anyway, I'll probably switch to emacs at work. thanks for your help
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:22 PM.

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