LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-10-2005, 03:51 PM   #1
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Rep: Reputation: 15
home, delete, end keys problem in vi


Hi,
When I'm using vi in X window, my home, end and delete keys doesn't work well. In the console it's ok, but in X it isn't. I'm using slack 10 and xterm, my TERM in the X is xterm, and in console is linux.

Thnks.
 
Old 01-11-2005, 07:50 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
By default /usr/bin/vi is a symlink to /usr/bin/elvis, from man elvis, elvis has
a X interface which may be the source of your poblem.

May I suggest you to try vim instead ? Make sure to copy the default
preferences /usr/share/vim/vim63/vimrc_example.vim to ~/vimrc before use it
 
Old 01-11-2005, 08:20 AM   #3
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 15
Stills the same, but now with colors :P.
 
Old 01-11-2005, 08:59 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Could you elaborate a little more about your home, end and delete key
problem ? What happen exactly ?
 
Old 01-11-2005, 09:11 AM   #5
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 15
In COMMAND mode, the HOME and END keys doesn't work. In INPUT mode, those keys, also doesn't work, and by pressing them the mode returns to COMMAND. In INPUT mode the backspace doesn't work, i.e, can't do anything, just beeps. In INPUT mode the DELETE key, doesn't work perfectly, i.e, it deletes caracteres when pressed, but when a line is completely empty this keys doesn't pull the next line up.
I think that's about it.
 
Old 01-11-2005, 09:22 AM   #6
GaMeS
Member
 
Registered: Jan 2005
Location: France / Bretagne
Distribution: Debian / Gentoo
Posts: 71

Rep: Reputation: 15
i'm the same problem

but use REPLACE and to errase texte press SPACEBAR

i don't have another solution...
 
Old 01-11-2005, 12:06 PM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
To delete a line, I use dd in command mode (with a number before if I want to delete some lines
at the same time) I use x to delete char in command mode (with a number before as the same way
for dd)

In input mode the delete key works with me (and the vimrc example config copied in ~/.vimrc)

To go to end of line I use $ in command mode
To go to end of document, I let the next key pushed (the one to right of the end key on my
keyboard) until it reach the end
 
Old 01-11-2005, 12:21 PM   #8
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by Cedrik

To go to end of document, I let the next key pushed (the one to right of the end key on my
keyboard) until it reach the end
or you can use "G" as well

here's a good reference - or check the docs at vim.org:

http://tnerual.eriogerg.free.fr/vim.html
 
Old 01-11-2005, 12:48 PM   #9
GaMeS
Member
 
Registered: Jan 2005
Location: France / Bretagne
Distribution: Debian / Gentoo
Posts: 71

Rep: Reputation: 15
thanks for urs help
 
Old 01-12-2005, 02:16 PM   #10
bujecas
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Original Poster
Rep: Reputation: 15
OK, I may use the keystrokes of the COMMAND mode, but if I am on INPUT mode and I want to delete caracteres or pull a line up, it won't do that because of the misconfigured HOME, END, DELETE keys.
 
Old 01-12-2005, 02:32 PM   #11
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
See if your ~/.vimrc looks something like this. All the key you mentioned should work with this.

syntax enable
colorscheme evening
set autoindent
set backspace=indent,eol,start
fixdel
set nowrap
set ruler
set showcmd
set showmode
set tabstop=4
 
  


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
Home / End keys in aterm Vgui Linux - General 4 08-11-2005 12:59 PM
Home/End keys don't work Abdul Linux - Software 2 07-25-2005 08:48 PM
ins,end,delete keys are mischevious lnxlover Linux - Software 2 03-05-2005 02:24 AM
Home and End keys in RXVT kevmccor Slackware 3 12-16-2004 04:51 PM
End & Home keys for Bash on FreeBSD mdixon *BSD 4 11-20-2004 08:57 PM


All times are GMT -5. The time now is 09:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration