Thread View: comp.unix.programmer
5 messages
5 total messages
Started by Cel
Sun, 16 May 1999 00:00
Question about vi
Author: Cel
Date: Sun, 16 May 1999 00:00
Date: Sun, 16 May 1999 00:00
6 lines
1199 bytes
1199 bytes
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 ... Thanks for your help Reply to : cb8cfe@isis.sunderland.ac.uk
Re: Question about vi
Author: Khem Chander
Date: Sun, 16 May 1999 00:00
Date: Sun, 16 May 1999 00:00
18 lines
1541 bytes
1541 bytes
In you .exrc file in $HOME directory you need to have a statement "se nu" for this to happen. thanks, khem chande kchande@yahoo.com Cel <cb8cfe@isis.sunderland.ac.uk> wrote in article <373EDD56.45074639@isis.sunderland.ac.uk>... > 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 ... > > Thanks for your help > Reply to : cb8cfe@isis.sunderland.ac.uk > > >
Re: Question about vi
Author: Charles Demas
Date: Mon, 17 May 1999 00:00
Date: Mon, 17 May 1999 00:00
36 lines
1866 bytes
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
Re: Question about vi
Author: Adam C. Emerson
Date: Mon, 17 May 1999 00:00
Date: Mon, 17 May 1999 00:00
17 lines
1870 bytes
1870 bytes
[Followup-To set to comp.editors] In comp.unix.programmer 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 ... The command is :set nu you can put it in your .exrc file.. comp.editors might be better for this sort of thing. -- Adam C. Emerson aemerson@atdot.org http://www.calvin.edu/~aemers19/ Preach from it unto the Righteous, that they may renounce their ways and repent. -- Honest Book of Truth
Re: Question about vi
Author: Robert Butram
Date: Sat, 22 May 1999 00:00
Date: Sat, 22 May 1999 00:00
19 lines
1451 bytes
1451 bytes
Make the file $HOME/.exrc with your initial commands -- Robert Butram www.butram.com www.aristotle.net/~rbutram The opinion expressed here may NOT match the reality experienced by others! Cel wrote in message <373EDD56.45074639@isis.sunderland.ac.uk>... >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 ... > >Thanks for your help >Reply to : cb8cfe@isis.sunderland.ac.uk > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads