Skupiny Google už nepodporují nová předplatná ani příspěvky Usenet. Historický obsah lze zobrazit stále.

VIM and aterm

0 zobrazení
Přeskočit na první nepřečtenou zprávu

Garvin

nepřečteno,
19. 3. 2003 2:19:1419.03.03
komu:

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

nepřečteno,
19. 3. 2003 5:29:0519.03.03
komu:
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

nepřečteno,
19. 3. 2003 10:19:4719.03.03
komu:
* 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

nepřečteno,
19. 3. 2003 23:35:1019.03.03
komu:
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

nepřečteno,
20. 3. 2003 0:57:1020.03.03
komu:
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

nepřečteno,
20. 3. 2003 6:21:2720.03.03
komu:
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 nových zpráv