- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tab spaces in vi and printing don't match
Operating System - HP-UX
1753900
Members
7773
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО04-24-2003 05:20 AM
тАО04-24-2003 05:20 AM
tab spaces in vi and printing don't match
I like to change my vi tab stops from default 8 to 5 spaces:
vi .exrc
set autowrite wrapmargin=0 report=1 tabstop=5
works fine.
But when I print, the tabstops aren't set to five. They seem to be set to 8, and all my files run off of the right side of the paper.
Is there some way to get the print tabs to match the vi tabs?
vi .exrc
set autowrite wrapmargin=0 report=1 tabstop=5
works fine.
But when I print, the tabstops aren't set to five. They seem to be set to 8, and all my files run off of the right side of the paper.
Is there some way to get the print tabs to match the vi tabs?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 05:53 AM
тАО04-24-2003 05:53 AM
Re: tab spaces in vi and printing don't match
Hi Stuart:
Have a look at the 'pr' filter's '-e' arguement (man 'pr'). Hence:
# pr -F -e5 filename | lp ...
Regards!
...JRF...
Have a look at the 'pr' filter's '-e' arguement (man 'pr'). Hence:
# pr -F -e5 filename | lp ...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 05:54 AM
тАО04-24-2003 05:54 AM
Re: tab spaces in vi and printing don't match
Though this may work for you, you're bound to get trouble when exchanging files with others. Almost everyone in the unix world is using tabs=8
If the only reason you want it set to 5 is to have less indent in programmatic blocks, I would strongly advice to use sw=5 instead, it is supported by all vi clones, and still leaves the spacing portable regarding the tab stops.
If you are using a `better' vi, check if it has an expand option, so your file will not contain any spaces at all when writing it.
Also check the 'expand' command
Enjoy, have FUN! H.Merijn
If the only reason you want it set to 5 is to have less indent in programmatic blocks, I would strongly advice to use sw=5 instead, it is supported by all vi clones, and still leaves the spacing portable regarding the tab stops.
If you are using a `better' vi, check if it has an expand option, so your file will not contain any spaces at all when writing it.
Also check the 'expand' command
Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 06:01 AM
тАО04-24-2003 06:01 AM
Re: tab spaces in vi and printing don't match
Hi
expand should also work
expand processes the named files or the standard input and writes to
the standard output with tabs changed into spaces.
Steve steel
expand should also work
expand processes the named files or the standard input and writes to
the standard output with tabs changed into spaces.
Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP