Xref: utzoo comp.editors:694 comp.unix.questions:12905 Path: utzoo!attcan!uunet!husc6!mailrus!purdue!haven!umbc3!wolf.umbc.edu!alex From: alex@wolf.umbc.edu (Alex Crain) Newsgroups: comp.editors,comp.unix.questions Subject: Re: Question about vi macros Keywords: vi editor, key mappings Message-ID: <1919@umbc3.UMBC.EDU> Date: 17 Apr 89 00:01:02 GMT References: <1915@umbc3.UMBC.EDU> Sender: newspost@umbc3.UMBC.EDU Reply-To: alex@wolf.umbc.edu.UUCP (Alex Crain) Organization: University of Maryland Baltimore Co. Lines: 16 In article <1915@umbc3.UMBC.EDU> rostamia@umbc3.UMBC.EDU (Rouben Rostamian) writes: >Now my question is this: How can I get the first column in the listing >to display "Next_Screen" or something like it, as the folks who wrote vi >were able to do with their key definitions? Sorry, you can't. Terminals are all described in the file /etc/termcap, and there are fields for the left, right, up, and down keys. When vi starts up, it binds to the "left" key, not ^[[0A or whatever it is on you're terminal. Since there is no termcap field for a "next page" key, you have to bind to ^[F~, with no name. :alex Alex Crain Systems Programmer alex@umbc3.umbc.edu Univ Md Baltimore County umbc3.umbc.edu!nerwin!alex