 |
 |
ssh to RedHat -- vi issues
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2002
Status:
Offline
|
|
Hello.
Here's a wierd one: I frequently SSH into our RedHat 7.3 server at work from my Powerbook (OS X.3). When I do all of my commands get typed correctly to the screen and by and large all of my keys work. However, when I enter VI my delete/backspace key doesn't work properly.
I can type normally in 'INSERT' mode, but if I make a typo and hit delete VI deletes the characters _ahead_ of the current cursor position. Here's an example:
TYPO ==> Mary had a litttle lamb.
<move cursor over the 2nd letter 'l'>
<hit delete to remove 3rd 't'>
RESULT ==> Mary had a littte lamb.
What I've done to try and fix this problem:
1)Compare terminal settings between Mac Terminal and RedHat terminal with 'set' command. Both are listed as 'TERM=xterm-color'.
2)Edited my ~/.vimrc file in my Redhat home directory, here it is:
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""
set nocompatible
set bs=2 " make backspace work under all conditions
set ai " turns on autoindent
set ruler " turns on ruler
set sw=2 ts=2 " sets tabs to be 2 characters
syntax on " enables syntax highlighting
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""
3)Set terminal mode in .vimrc with set term=xterm-color
Nothing seems to work.
Does anyone have any suggestions on how to fix this?
|
|
PowerBook G4 800Mhz
1GB RAM
60GB 7200rpm Hard Drive
Running Tiger
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2003
Location: Pittsburgh, Pennsylvania
Status:
Offline
|
|
Originally posted by GATTACA:
Hello.
Here's a wierd one: I frequently SSH into our RedHat 7.3 server at work from my Powerbook (OS X.3). When I do all of my commands get typed correctly to the screen and by and large all of my keys work. However, when I enter VI my delete/backspace key doesn't work properly.
I can type normally in 'INSERT' mode, but if I make a typo and hit delete VI deletes the characters _ahead_ of the current cursor position. Here's an example:
TYPO ==> Mary had a litttle lamb.
<move cursor over the 2nd letter 'l'>
<hit delete to remove 3rd 't'>
RESULT ==> Mary had a littte lamb.
What I've done to try and fix this problem:
1)Compare terminal settings between Mac Terminal and RedHat terminal with 'set' command. Both are listed as 'TERM=xterm-color'.
2)Edited my ~/.vimrc file in my Redhat home directory, here it is:
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""
set nocompatible
set bs=2 " make backspace work under all conditions
set ai " turns on autoindent
set ruler " turns on ruler
set sw=2 ts=2 " sets tabs to be 2 characters
syntax on " enables syntax highlighting
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""
3)Set terminal mode in .vimrc with set term=xterm-color
Nothing seems to work.
Does anyone have any suggestions on how to fix this?
seems like the keyboard isn't being mapped correctly. The easiest solution is just to use the 'x' key to delete single characters, and the 'dd' to delete whole lines, 'D' to delete from the cursor to the end of the line. Best of luck.
Nate
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |