aterm and vim...

Sasha_Vasko@osca.state.mo.us
Mon, 28 Jun 1999 11:36:38 -0500




>Hello all.

>I use vim a lot for editing DNS sones and such tasks. I recently started to
>use aterm as my default term instead of xterm, it turns out that using vim on
>aterm creates som undesirable results:

>1. Backspace no longer works. Gives ^? (TERM=xterm) or nothing at all
>(TERM=vt100). Must use Ctrl+H.

aterm as well as rxvt is using readline and there fore can be configured through
/etc/inputrc file.  Here is what I v=have in there :

# Show all if ambigious.
set show-all-if-ambiguous on

# 8Bits supports.
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on

# Keyboard configuration
"
[2~": yank             # Insert
"
[3~":delete-char       # Suppr

"
[1~": beginning-of-line     # Home
"
[4~": end-of-line      # End

"
[5~": previous-history # Previous
"
[6~": next-history          # Next

# kvt
"
H":beginning-of-line
"
F":end-of-line
# rxvt and konsole (i.e. the KDE-app...)
"
7~":beginning-of-line
"
8~":end-of-line

Here is also what I have in ~/.Xdefaults :

*VT100.Translations: #override \
    <Key>BackSpace: string(0x7F)\n\
    <Key>Delete:    string("\033[3~")\n\
    <Key>Home:      string("\033[1~")\n\
    <Key>End:       string("\033[4~")
*ttyModes: erase ^?

Be sure to check out the following page, for more comprehensive explanation :
http://www.ibbnet.nl/~anne/keyboard/keyboard.html

>2. When editing on a line, the edited text shows up far to the right on the
>line. (8 characters from the right side of the term)
>This does however seem to occur only when I use vim over a remote shell from
>the HP-UX server. When I edit locally, this problem does not occur.

heh, can't really say anything about it. Try using xterm and see if it does that
same ?

>Frank Ronny Larsen -- frankrl@stud.cs.uit.no

Sasha



--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://www.calderasystems.com/linuxcenter/forums/afterstep.html