• Arrows in Fink's vim?

    From Steven Fisher@sdfisher@spamcop.net to comp.sys.mac.system on Monday, April 17, 2006 13:42:14
    From Newsgroup: comp.sys.mac.system

    When I hit an arrow key in insert mode with the system installed vim
    6.2, it works correctly. When I do the same with the fink-installed vim
    6.3, it seems to be typing some elaborate sequence (that doesn't work).
    Any ideas what I'm missing to make fink's vim behave?

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Bob Harris@nospam.News.Bob@remove.Smith-Harris.us to comp.sys.mac.system on Tuesday, April 18, 2006 02:51:14
    From Newsgroup: comp.sys.mac.system

    In article
    <1145306534.465082.318700@z34g2000cwc.googlegroups.com>,
    "Steven Fisher" <sdfisher@spamcop.net> wrote:

    When I hit an arrow key in insert mode with the system installed vim
    6.2, it works correctly. When I do the same with the fink-installed vim
    6.3, it seems to be typing some elaborate sequence (that doesn't work).
    Any ideas what I'm missing to make fink's vim behave?

    Check the terminal that Vim thinks it has

    :set term?

    The Apple provided Vim may have a built-in default terminal
    definition that the fink version is missing.

    or the term is one in the terminfo database that does not have
    correct definitions for the arrow key escape sequences send by the
    terminal.

    My TERM environment variable is set to xterm-16color which seems
    to work nicely for me.

    And I use iTerm 0.80 <http://iterm.sf.net> mostly because it has
    tabbed windows, but I also think it does a few things better than Terminal.app.

    Also when I was using Terminal.app, I modified my arrow key
    definitions in
    Terminal -> Window Settings... menu -> Keyboard
    setting:

    cursor down \033OB
    cursor left \033OD
    cursor right \033OC
    cursor up \033OA

    Then again, I did this originally back on Panther. I don't know
    if Tiger changed them or if these are my original changes, but my
    arrow keys still work, plus I had switched over to iTerm before
    upgrading to Tiger, so my mileage in Terminal under Tiger has been
    minimual.

    NOTE: I live and breath with Vim and iTerm on my Mac at work.
    I'm a UNIX software developer, and a PowerMac is my workstation.

    Bob Harris
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Steven Fisher@sdfisher@spamcop.net to comp.sys.mac.system on Monday, April 17, 2006 21:00:23
    From Newsgroup: comp.sys.mac.system


    Bob Harris wrote:

    Check the terminal that Vim thinks it has

    :set term?

    The Apple provided Vim may have a built-in default terminal
    definition that the fink version is missing.

    Good thought, but both seem to be defined as term=xterm-color.

    My TERM environment variable is set to xterm-16color which seems
    to work nicely for me.

    I tried this as well, but it doesn't seem to make a difference.

    And I use iTerm 0.80 <http://iterm.sf.net> mostly because it has
    tabbed windows, but I also think it does a few things better than Terminal.app.

    I'm not very happy with Terminal. I tried your other suggestions, but
    they didn't help. I think I'll try out iTerm and see if it is better
    suited to my needs. Thanks!

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From D P Schreber@schreberdp@rayban.net to comp.sys.mac.system on Tuesday, April 18, 2006 07:48:13
    From Newsgroup: comp.sys.mac.system

    On 2006-04-17, Steven Fisher <sdfisher@spamcop.net> wrote:
    When I hit an arrow key in insert mode with the system installed vim
    6.2, it works correctly. When I do the same with the fink-installed vim
    6.3, it seems to be typing some elaborate sequence (that doesn't work).

    Bulld vim yourself, without fink. 6.4 builds out of the box and does
    not have the problem you describe (I'm using it to type in this
    article). You also get Aqua gvim for free. Check out the source tree
    from :pserver:anonymous@cvs-pserver.sf.net:80/cvsroot/vim. I use it
    every day for all my email and usenet composition (mutt and slrn, which
    you should also build yourself). Imo you really should avoid fink and darwinports if at all possible, except to use their patches when
    necessary.
    --- Synchronet 3.18b-Win32 NewsLink 1.113