Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > ssh to RedHat -- vi issues

ssh to RedHat -- vi issues
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2002
Status: Offline
Reply With Quote
May 18, 2004, 10:41 AM
 
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
Reply With Quote
May 20, 2004, 02:57 PM
 
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
Apple iBook, B&W, Quadra 660, PowerMac 6100
Sun Netra T1, Ultra 1, Javastation
http://natetobik.mine.nu:81
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2