Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VIM and aterm

1 view
Skip to first unread message

Garvin

unread,
Mar 19, 2003, 2:19:14 AM3/19/03
to

I use aterm as my default terminal. I do like using the Home and End
keys to jomp to the first column and last column of the line
respectively. However, in aterm, when I press [home] or [end] in vim,
what usually happens is that the button stay on the character I
pressed [home] or [end] on, and changes its case, insetad of moving
it like I would desire.

I tried a few key mapping thigns in vimrc, but that did not work. If
you know of something to fix this, please share it. Thanks!

ps: [home] and [end] do work in xterm/rxvt, just not aterm
--

uws

unread,
Mar 19, 2003, 5:29:05 AM3/19/03
to
I <slrnb7g6le...@ux7.cso.uiuc.edu>, Garvin skrev:

I think this has not to do with vim, but with your terminal settings.
What does

$ echo $TERM

say in both aterm and xterm/rxvt?

--
Wouter mail u...@xs4all.nl

hey boy, take a look at me :: let me dirty up your mind -- garbage

Matthew Weier O'Phinney

unread,
Mar 19, 2003, 10:19:47 AM3/19/03
to
* Garvin <gc...@nospam.yahoo.com>:

> I use aterm as my default terminal. I do like using the Home and End
> keys to jomp to the first column and last column of the line
> respectively. However, in aterm, when I press [home] or [end] in vim,
> what usually happens is that the button stay on the character I
> pressed [home] or [end] on, and changes its case, insetad of moving
> it like I would desire.

It's an issue with aterm (my term of choice as well).

Are you trying to do this action while in insert mode, or normal mode?
If you're in normal mode, 0 and $ get you to the beginning and end; I
and A put you in insert mode in addition to moving you to the location.
If you're in insert mode, it's pretty easy to map keystrokes to do what
you want -- map to <Esc>I and <Esc>A, respectively.

--
Matthew Weier O'Phinney
mat...@weierophinney.net
http://matthew.weierophinney.net

Garvin

unread,
Mar 19, 2003, 11:35:10 PM3/19/03
to
uws <u...@xs4all.invalid> wrote:
>I <slrnb7g6le...@ux7.cso.uiuc.edu>, Garvin skrev:
>> I use aterm as my default terminal. I do like using the Home and End
>> keys to jomp to the first column and last column of the line
>> respectively. However, in aterm, when I press [home] or [end] in vim,
>> what usually happens is that the button stay on the character I
>> pressed [home] or [end] on, and changes its case, insetad of moving
>> it like I would desire.
>> I tried a few key mapping thigns in vimrc, but that did not work. If
>> you know of something to fix this, please share it. Thanks!
>> ps: [home] and [end] do work in xterm/rxvt, just not aterm
>
>I think this has not to do with vim, but with your terminal settings.
>What does
>
> $ echo $TERM
>
>say in both aterm and xterm/rxvt?
>

in Aterm, it says rxvt.

in rxvt/xterm, it says xterm.

I think you must be right about this then... what should I do to fix
this? Thanks

I would like to still use Aterm. Thanks


--

Garvin

unread,
Mar 20, 2003, 12:57:10 AM3/20/03
to
I just added:

export TERM=xterm

in my .bashrc to take care of it. Thanks for letting me konw about
the terminals instead of thinking it was just aterm or xterm or
something like that. Thanks

uws

unread,
Mar 20, 2003, 6:21:27 AM3/20/03
to
I <slrnb7ihdp...@ux10.cso.uiuc.edu>, Garvin skrev:

> uws <u...@xs4all.invalid> wrote:
>>I think this has not to do with vim, but with your terminal settings.
>>What does
>> $ echo $TERM
>>say in both aterm and xterm/rxvt?
> in Aterm, it says rxvt.
> in rxvt/xterm, it says xterm.
> I think you must be right about this then... what should I do to fix
> this? Thanks
> I would like to still use Aterm. Thanks

Use EXPORT TERM=xterm, for instance. Or put this in your .bashrc file.

--
Wouter mail u...@xs4all.nl

don't just call me pessimist :: try and read between the lines -- tool

0 new messages