- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cut-and-paste and indents in "vi"
Operating System - HP-UX
1823975
Members
3869
Online
109667
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
Forums
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО05-29-2007 09:07 PM
тАО05-29-2007 09:07 PM
Had a query from a DBA about why his cut and paste of a .sql script from one vi screen to another put so many indents in the new file.
I figured the short cut around this (tried as a different user ie. root) but cannot find the config items for vi formatting to correct this.
Can anyone provide a hint? Can I buy a vowel? Share and Enjoy! Ian
I figured the short cut around this (tried as a different user ie. root) but cannot find the config items for vi formatting to correct this.
Can anyone provide a hint? Can I buy a vowel? Share and Enjoy! Ian
Building a dumber user
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2007 09:34 PM
тАО05-29-2007 09:34 PM
Re: Cut-and-paste and indents in "vi"
Hi Ian,
there are many ways to put the content of one file into another via 'vi'.
- include the content of a file (:r otherfile)
- include the output of a command; non-empty lines e.g. :r!awk NF otherfile
Or remove trailing spaces after a paste
:%s/^ *//
Else SQL-output can be formatted in many many ways...
mfG Peter
there are many ways to put the content of one file into another via 'vi'.
- include the content of a file (:r otherfile)
- include the output of a command; non-empty lines e.g. :r!awk NF otherfile
Or remove trailing spaces after a paste
:%s/^ *//
Else SQL-output can be formatted in many many ways...
mfG Peter
The Universe is a pretty big place,
it's bigger than anything anyone has ever dreamed of before.
So if it's just us, seems like an awful waste of space, right?
Jodie Foster in "Contact"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2007 10:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2007 10:04 PM
тАО05-29-2007 10:04 PM
Re: Cut-and-paste and indents in "vi"
Andrew,
Magic answer, thanks for that. Problem solved.
Share and Enjoy! Ian
Magic answer, thanks for that. Problem solved.
Share and Enjoy! Ian
Building a dumber user
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP