- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem about "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
12-06-2007 07:08 AM
12-06-2007 07:08 AM
problem about "vi"
I use "vi" to modify my file.
one line is too long,nearby 300 charactors
How can I make such message show in one line only?
Can I use export COLUMNS=400 or could you give me some suggestion?
Regards,Louis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 07:26 AM
12-06-2007 07:26 AM
Re: problem about "vi"
vi does not as far as I use external variables.
You can set these values within the vi application.
There may be a configuration file you can change called .viminfo
In your home directory
http://unix.t-a-y-l-o-r.com/VRoptions.html
set all
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 07:35 AM
12-06-2007 07:35 AM
Re: problem about "vi"
You have a line with 300 char, if you on tha line type $ it will go at the last char...
Even if it displays it as on 5 lines its not silly...
You are asking to find a terminal capable of displaying 300-400 columns!
You find it vi will display...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 08:01 AM
12-06-2007 08:01 AM
Re: problem about "vi"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 08:24 AM
12-06-2007 08:24 AM
Re: problem about "vi"
is your value of wrapmargin set to zero?
wrapmargin (wm)
If this option has a value greater than zero, the editor will automatically "word wrap". That is, if you get to within that many spaces of the left margin, the word will wrap to the next line, without having to type return. For example, to set the wrap margin to two characters, you would type this: :set wm=2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 10:09 AM
12-06-2007 10:09 AM
Re: problem about "vi"
Example:
echo test
can also written as:
ec\
ho \
te\
st
hoops this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2007 07:22 PM
12-06-2007 07:22 PM
Re: problem about "vi"
vi is not a formatting tool but your terminal will definitely affect how things appear. You can easily set Reflection/HP or Reflection/VT for 300 or more characters. However, you will need a 25" to 30" display to read the text.
If vi seems to be splitting your long lines, use this command in vi:
:set noai wm=0
and now long lines will not be automatically split.
Bill Hassell, sysadmin