🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3300

Re: Question about vi

#3300
From: Charles Demas
Date: Mon, 17 May 1999 00:00
36 lines
1866 bytes
In article <373EDD56.45074639@isis.sunderland.ac.uk>,
Cel  <cb8cfe@isis.sunderland.ac.uk> wrote:
>Can anyone remember me how to get the lines automatically numeroted when
>I open a file
>using vi ? It's a file u must create if i remember ...


I use tcsh, and I set my evnironment variable EXINIT like this in my 
.tcshrc file:


# vi startup stuff
  setenv EXINIT 'map g G\
  set ignorecase showmatch showmode nu ai shiftwidth=4'


The nu does the numbering, the other things do other things I 
find useful.

You could also do it manually after entering vi by using the

:set nu

command while in the command mode.  To turn off numbering use

:set nonu


Chuck Demas
Needham, Mass.

--
  Eat Healthy    |   _ _   | Nothing would be done at all,
  Stay Fit       |   @ @   | If a man waited to do it so well,
  Die Anyway     |    v    | That no one could find fault with it.
  demas@tiac.net |  \___/  | http://www.tiac.net/users/demas
Technical Details
Message-ID: <7hnp39$hl7@news-central.tiac.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <373EDD56.45074639@isis.sunderland.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10ad36,59091166294b77c2
X-Google-Attributes: gid10ad36,public
X-Google-Thread: f8c9b,59091166294b77c2
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: fc89c,59091166294b77c2
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 1132ff,59091166294b77c2
X-Google-Attributes: gid1132ff,public
X-Google-Thread: 104fad,59091166294b77c2
X-Google-Attributes: gid104fad,public
X-Google-Thread: f72b0,59091166294b77c2
X-Google-Attributes: gidf72b0,public
From: demas@sunspot.tiac.net (Charles Demas)
Subject: Re: Question about vi
Date: 1999/05/17
Message-ID: <7hnp39$hl7@news-central.tiac.net>
X-Deja-AN: 478643825
References: <373EDD56.45074639@isis.sunderland.ac.uk>
Organization: The Internet Access Company
Newsgroups: comp.unix.programmer,comp.unix.bsd,comp.unix.aux,cern.unix,comp.unix.misc,comp.unix.questions