Thanks, Gary. That resolved my problems.

On Fri, Feb 3, 2012 at 10:17 PM, Gary Johnson <[email protected]> wrote:

> On 2012-02-03, Saqib Ilyas wrote:
> > Hi everyone
> > I have two questions.
> > The first one: I'm sure this is a very old question. I've found many
> instances
> > of this on various forums and blogs, but none of the suggested methods
> seem to
> > work for me. I am using putty to connect to a Solaris machine (SunOS
> 5.9). In
> > the bash shell, the delete and backspace keys work as they do in
> Windows, for
> > instance. But when in vi, the delete key capitalizes the character under
> it, or
> > prints the tilde character, if in insert mode. I tired various things in
> .vimrc
> > and .terminfo/x/xterm. I also downloaded and compiled vim and got the
> same
> > result.
> > Putty configuration is: Backspace key sends Control-H. Home and
> end-keys: rxvt.
> > The function keys and keypad: xterm R6
> > echo $TERM shows xterm.
> > stty -a shows earse = ^?
> > Any clues? I've even tried using emacs and putting several fixes into
> .emacs,
> > but no success.
>
> It sounds to me as though your TERM variable or the terminfo
> database it refers to are incorrect for PuTTY.  You can see what
> your terminal emits for the Delete key by entering insert mode,
> typing Ctrl-V, then typing the Delete key.  On my system the result
> looks like
>
>    ^[[3~
>
> where ^[ are the characters Vim uses to show the Escape character.
>
> Terminfo refers to the Delete key as kdch1.  (See "man 5 terminfo".)
> To see what terminfo has for that key for your TERM, execute at the
> shell prompt
>
>    infocmp -1 | grep kdch1
>
> That command works as-is on Linux.  As I recall, Solaris had
> different commands to query terminfo but I can't remember what
> they were and I no longer have access to a Solaris system.  On my
> Linux system that command shows
>
>    kdch1=\E[3~
>
> where infocmp uses \E to represent an Escape character.
>
> So when you press the Delete key, your terminal emits the character
> sequence ^[[3~ which Vim (by means of the curses library) interprets
> as kdch1, the Delete key, and performs the delete operation.
>
> How you fix that depends on how it is wrong on your system.  It
> could be as simple as changing TERM to "xterm".  In any case, now
> you know something of the tools that may help you find the cause of
> the problem.
>
> > The second one: I compiled vim 7.3 and when I run it, I can't get help.
> For
> > example, if I try :help fixdel, it displays an error message E433: No
> tags file
> > and E149: Sorry, no help for fixdel. What do you think I missed?
> > Thanks and best regards
>
> Did you install it (i.e., execute "make install") or just compile
> it?  Vim is compiled with the path to its help files built in,
> according to the options supplied to the configure script.  If you
> haven't installed it, the directory where it is looking for the help
> files probably doesn't exist.
>
> You don't have to install it in /usr/local.  You can give the
> configure script a --prefix option to tell Vim where to find its
> configuration files and "make install" where to put them.  When
> building Vim on a system where you don't have administrator
> privileges, a common solution is to set --prefix to $HOME.
>
> HTH,
> Gary
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>



-- 
Muhammad Saqib Ilyas
PhD Student, Computer Science and Engineering
Lahore University of Management Sciences

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to