HP-UX B.11.00 U 9000/785 2003725330
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.
First, check what gets inserted when you type, in insert mode:
CTRL-V<Delete>
It looks like your terminal may be sending something like <ESC>~,
which would show up as ^[~ after you do the above, causing Vim to
leave insert mode (<esc>) and toggle the case of the character under
the cursor (~).
There are a few ways to fix this; one of them is to :set <Del>=(type,
CTRL-V<Del> as above).
There may, of course, be better ways to do this.
I guess you aren't using the proper $TERM value for your terminal.
Here, with 'term' set to xterm, the Delete key is supposed to be ^[[3~
which, if sent in Insert mode and not interpreted, would go to Normal
mode, beep, and toggle one character from upper to lower case or vice-versa.
Method I. Find the right value for $TERM and set it in putty before
starting Vim. Try xterm or xterm-color for a start.
Method II. :let &t_kD = "\e[3~"
(the latter won't "repair" the other wrong key definitions you might have).
Best regards,
Tony.
--
According to Arkansas law, Section 4761, Pope's Digest: "No person
shall be permitted under any pretext whatever, to come nearer than
fifty feet of any door or window of any polling room, from the opening
of the polls until the completion of the count and the certification of
the returns."
CTRL-V<Delete>
displays
^[[3~
Then what should I do?
This does not work:
:set <Del>=[[3
<Del: No such option - 'set all' gives all option values
__________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/
See :help :set-termcap
I think you want:
set <del>=(press CTRL-V)(press delete)
But maybe it needs to be <t_kD> instead of <del>...see Tony's post.
I haven't had trouble with any keys except for the alt key before.
It should work in Console Vim. For gvim you need a properly set X-server
which can display on your machine and be accessed by a gvim running,
presumably, on the remote computer.
Best regards,
Tony.
--
Christ:
A man who was born at least 5,000 years ahead of his time.
That should be
:set t_kD=^[[3~
where the ^[ means <Esc>. The easiest way to insert that sequence
after the = is to type Ctrl-v Delete as you did above. See
:help termcap
As someone else wrote, this is really a symptom of a larger
problem--that the terminfo database that vim is using is not
matching the terminal that you are using--that is likely to bite you
again if you don't fix it properly.
Regards,
Gary
> --~--~---------~--~----~------------~-------~--~----~
:help :set-termcap
failed with "help" not an editor command.
All of these failed with "No such option" error message:
set &t_kD="\e[[3~"
set &t_kD=press CTRL-V press delete
Are you sure you're using Vim? ":help" is a pretty basic command, and
pretty ancient too -- I'd say that it's fundamental to Bram's software
philosophy. Now if you aren't using Bram's software but the "original"
vi or some other clone of it... then I guess we can't help you.
Best regards,
Tony.
--
History, n.:
Papa Hegel he say that all we learn from history is that we
learn nothing from history. I know people who can't even learn from
what happened this morning. Hegel must have been taking the long
view.
-- Chad C. Mulligan, "The Hipcrime Vocab"
--- On Mon, 6/30/08, Tony Mechelynck <antoine.m...@gmail.com> wrote:
> My mistake!
:help :set-termcap
actually work.
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
--- On Mon, 6/30/08, Gary Johnson <gary...@spk.agilent.com> wrote:
Both failed:
:set t_kD= CTRL-V <Esc>[3~
:set &t_kD= CTRL-V <Esc>[3~
i.e. for the first one, I typed
":set t_kD=",
press CTRL-V together,
press <Esc>,
typed "[3~",
press <Enter>.
for the second one, I typed
":set &t_kD=",
press CTRL-V together,
press <Esc>,
typed "[3~",
press <Enter>.
Maybe you've already figured this out, but you shouldn't use the &
option prefix with the set command. Use the & prefix only with the
let command. So either of these will work:
:set t_kD=^[[3~
:let &t_kD="\e[3~"
where ^[ is a literal escape character. Note, too, that escapes
such as \e will not work in a set command.
Regards,
Gary
Again: ARE YOU SURE YOU'RE USING VIM?
"Error: "help" not an editor command"
in reply to
:help set-termcap
makes me believe you aren't.
Best regards,
Tony.
--
If mathematically you end up with the wrong answer, try multiplying by
the page number.
Did you use a very slow terminal? Does increase timeout solve your problem?
regards
> From: bill lam <cbil...@gmail.com>
> Subject: Re: <Delete> key do not erase char in insert mode with putty on HP
> To: vim...@googlegroups.com
> How to increase timeout?
__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
>
> makes me believe you aren't.
>
>
> Best regards,
> Tony.
> --
> If mathematically you end up with the wrong answer, try
> multiplying by
> the page number.
>
>
I downloaded and installed the latest vim, so I am using vim 7.1 on HP.
This problem is intermittent (bill lam's email suggested that timeout may be the cause).
Another question is that the <Backspace> key behave like a "normal" <Delete> key.
i.e. Pressing the <Backspace> key erase the current char.
How to change its behavior to "erase the char before the current char"?
__________________________________________________________________
Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
specifically, first check yr current setting
:set to? ttimeout? tm? ttm?
then try
:set timeout timeoutlen=3000 ttimeoutlen=3000
there will be 3 second delay, if this cure the problem then try
other or smaller values.
regards,
:help 'timeout'
:help 'timeoutlen'
:help 'ttimeout'
:help 'ttimeoutlen'
You would also have found them with
:help timeout<Tab>
or
:help timeout<Ctrl-D>
-- _Everything_ is in the Vim help.
Best regards,
Tony.
--
"Oh, no! NOT the Spanish Inquisition!"
"NOBODY expects the Spanish Inquisition!!!"
-- Monty Python sketch --
"Oh, no! NOT another option!"
-- Discussion in vim-dev mailing list --
Maybe ":help :fixdel" could help you.
Best regards,
Tony.
--
The average income of the modern teenager is about 2 a.m.
> From: Tony Mechelynck <antoine.m...@gmail.com>
> Subject: Re: <Delete> key do not erase char in insert mode with putty on HP
> To: vim...@googlegroups.com
> I put this in ~/.vimrc:
:if &term == "xterm"
: set t_kb=^V<BS>
: fixdel
:endif
where "^V" is CTRL-V and "<BS>" is the backspace key.
It works partially.
The backspace key works only until the <Esc> key is pressed. Afterwards only the new characters just typed can be erased.
The existing characters cannot be erased,
The cursor either cannot move or move over the existing characters .
__________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
> > I put this in ~/.vimrc:
> :if &term == "xterm"
> : set t_kb=^V<BS>
> : fixdel
> :endif
> where "^V" is CTRL-V and "<BS>" is the backspace key.
> It works partially.
> The backspace key works only until the <Esc> key is pressed.
> Afterwards only the new characters just typed can be erased.
> The existing characters cannot be erased,
> The cursor either cannot move or move over the existing characters .
:help 'backspace'
You want at least
:set bs=start
and probably
:set bs=indent,start
Personally, the eol flag drives me crazy so I don't use it, but you
might like that behavior as well.
Regards,
Gary
> I tried 4 different ways at ~/.vimrc, but still do not fix it.
set backspace=indent,eol,start
set backspace=indent,start
set bs=indent,eol,start
set bs=indent,start
It wasn't very clear to me just what the problem was, so I took a
guess and apparently guessed wrong. You wrote,
The backspace key works only until the <Esc> key is pressed.
which I took to mean that the backspace works in insert mode until
you press <Esc> to enter normal mode. Then you wrote,
Afterwards only the new characters just typed can be erased.
In normal mode, you should be able to delete any characters equally
well, whether or not they were just entered, so I assumed that you
entered insert mode again to type those new characters. Being able
to backspace over only the characters typed since entering insert
mode and not over any characters typed previously is symptomatic of
the 'backspace' option not having "start", so that is the solution I
offered.
If that's not the problem, then it would help my understanding to
know exactly what you typed, what you expected to happen and exactly
what did happen instead.
Regards,
Gary
see ":help 'backspace'"
> The cursor either cannot move or move over the existing characters .
Best regards,
Tony.
--
The Sixth Commandment of Frisbee:
The greatest single aid to distance is for the disc to be going
in a direction you did not want. (Goes the wrong way = Goes a long
way.)
-- Dan Roddick
> I apologize for not clear enough.
My goal is pressing [<---] (i.e. the backspace-key on my keyboard) will erase the char to the left of the current cursor.
The problem is that in both insert or normal mode,
pressing [<---] will
erase the char under the cursor.
~/.vimrc is:
set timeout timeoutlen=3000 ttimeoutlen=3000
:if &term == "xterm"
: set t_kb=^?
: fixdel
:endif
"set backspace=indent,eol,start
"set backspace=indent,start
"set bs=indent,eol,start
set bs=indent,start
__________________________________________________________________
That's strange, in normal mode <BS> should move cursor left (same as h), by
default it should not erase any character.
Under insert mode, does ctrl-h correctly delete the character on the left?
You mentioned you use putty, will it be possible that putty does not emulate an
xterm perfectly? Can you test with another software instead of putty? Did you
know anyone who has a positive experience of using vim with putty? disclaimer:
I have never used putty before.
That ttimeoutlen=3000 will cause 3 second delay, it will not be comfortable. At
any rate, that seems unable to solve your problem either.
regards,
> From: bill lam <cbil...@gmail.com>
> Subject: Re: <Delete> key do not erase char in insert mode with putty on HP
> To: vim...@googlegroups.com
> Under insert mode, ctrl-h do not correctly delete the
character on the left.
I tried another program Tera Term VT to ssh to HP from windows, but have the same problem.
I used putty to ssh to linux from windows and do not have any problems with the keyboard mapping, so I think the problem is with the HP machine which I ssh to. However I cannot upgrade its OS.
> From: bill lam <cbil...@gmail.com>
> Subject: Re: <Delete> key do not erase char in insert mode with putty on HP
> To: vim...@googlegroups.com
> Received: Thursday, July 3, 2008, 11:04 AM
Under insert mode, ctrl-h move the cursor to the left but does not erase any char.
Could you or ask someone else physically access the hp directly, and to verify
vim does run correctly on that machine?
regards,
--- On Thu, 7/3/08, bill lam <cbil...@gmail.com> wrote:
> From: bill lam <cbil...@gmail.com>
> Subject: Re: <Delete> key do not erase char in insert mode with putty on HP
> To: vim...@googlegroups.com
> Good idea!
The HP had a mouse problem even after replacing with a another mouse so I cannot open a console to use vim.
It does not need a mouse. press alt-ctrl-f1 to alt-ctrl-f6 to login
again. However since x-window is not running, try running vim
without x server. eg,
vim - X
regards,