- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Set tabstops with special line in vi
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
06-26-2008 11:33 PM
06-26-2008 11:33 PM
Set tabstops with special line in vi
Other editors have a special syntax inside the file-to-edit:
# :vim:tabstop=4:
The special line is checked by the editor, and
any commands on it are executed by vi
Does HP-UX vi have a similar feature?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2008 11:54 PM
06-26-2008 11:54 PM
Re: Set tabstops with special line in vi
in vi try :set tabstop=4
Kenan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 01:23 AM
06-27-2008 01:23 AM
Re: Set tabstops with special line in vi
I think that what you want can find in de file ".exrc" in your home directory.
For example "set tabstop=4"
My file contains this:
set autowrite wrapmargin=0 report=1 showmode
set tabstop=4
Paulus.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 01:28 AM
06-27-2008 01:28 AM
Re: Set tabstops with special line in vi
Paul's solution is better, but changes the defaults for all files.
How can I have tabstop=4 in one file, tabstop=6 in the next, and default settings in all others?
Kind Regards,
Reinier Kleipool
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2008 04:14 AM
06-30-2008 04:14 AM
Re: Set tabstops with special line in vi
I don't like it to put such information into files - depending on the tool used onto that file (compiler, ...) it may be harmful for further processing.
I use this solution to set a different tabsize for all files in a directory:
In ~/.exrc:
set ts=4
set exrc
...
In .../anydir/.exrc (must be writable by user only):
set ts=8
mfG Peter