The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: Tivo / Sky+/pioneer dvr-5100hs


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Linux help



On Friday 03 October 2003 13:55, Stuart Grimshaw wrote:

> In edit mode, useing the cursor keys results in the letters A B C
& D being
> inserted in the line above where you are typing.

That's coz the cursor keys send codes like ^[OA, which vim interprets as
"stop. open new line. insert A" ;)

> I've read all about :set term=cons25, but that makes no difference.

Nop,e that's for BSD.

Firstly, make sure your TERM environment variable accurately reflects the
terminal you're using, and make sure you have a termcap entry for it.

Then try setting 8 bit mode in the terminal. Do stty -a and if there's a
cs8
in there you're ok, otherwise do 'stty cs8 -istrip' to enable 8 bit mode. I
think for xterm you can also do this by mucking about with its xresources.

If that doesn't help, try ':help vt100-cursor-keys' in vim and see what
that
does for you.

As a final resort (this is what I have to do to use vim with rxvt under
cygwin
on 'doze) change the insert-mode keymap to map the key sequence that vim
sees
for the given key to the corresponding motion, eg

:imap ^[OA ^Ok

(to type that it's CTRL-V UP SPACE CTRL-O k)

Similarly map down to j, left to h, and right to l.

I'm sure there's a better way, but I can't be arsed investing the time
looking
for it.


cheers


ant

--
/\/\
www.ant.org  ('')  www.ant.org
()
Megawatt Winged Avenger



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.