- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- invoke vi always with line numbers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 06:34 AM
10-31-2001 06:34 AM
where can I put an entry to always invoke vi with linenumbers.
I'm tired of :set nu
using ksh on 10.20
sure this is an easy one
Klaus
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 06:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 06:41 AM
10-31-2001 06:41 AM
Re: invoke vi always with line numbers
Create a file .exrc in your home directory
and insert
:set number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 06:42 AM
10-31-2001 06:42 AM
Re: invoke vi always with line numbers
You can be place your options in the environment EXINIT, or in an '.exrc' file in the current directory. You can put multiple commands in the EXINIT variable by separating
them using a vertical line (|).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 06:49 AM
10-31-2001 06:49 AM
Re: invoke vi always with line numbers
se nu
If you don't have this file, create a new one.
You can find the detail description in "man vi".
Shawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 07:50 AM
10-31-2001 07:50 AM
Re: invoke vi always with line numbers
when you are already at it, add some more lines to your "$HOME/.exrc":
:set number
:set showmatch
:set showmode
and be careful to NOT insert any empty line - "vi" does not like that...
Viel Spass,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 11:56 AM
12-18-2001 11:56 AM
Re: invoke vi always with line numbers
I found something interesting about this.
I am using "C shell" and my .exrc was not working. The reason was I had the EXINIT parameter set in my .cshrc and was taking precedence over the $HOME/.exrc setting.
Regards,
Santanu