Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried putting the line in ~/.vinrc and when I go to the file and check the sets, it does not set it to the number. I will try looking at the sites. Thanks
I tried :set paste. That did not work either. I am just straight typing in command line mode.
The line I am trying to type is something like <value>jdbc:mysql://somemachine.someverylongdomainnameforaserver/somedatabase?user=someuser&password=somepassword</value>
Just though of something: I there a line in your xml code (at the top or bottom) that looks like:
/* vim:tw=4: */
The 4 can be another number.
If this line excists, vi will overrule all the other settings and use this (4 in the above example) as default for this document.
just checked, nothing like that in the file. How can I tell if I have vim instead of vi? If it type vim at the command line, it does not recogize the command.
Most of the things we have been talking about only work in vim. Typically, on Linux, you have vim. When you type ":help" I think it tells you what program it is. Actually, just the fact that ":help" works indicates it is vim or a vim variant; native vi doesn't have alot of these extensions.
Unfortunately, here at work I only have access to vi. When I get home tonight I'll do some more looking.
Does arbitrary text line break?
Is it breaking on white space or always at the same point? What point does it break at?
wrap causes the display to wrap at the end of the screen.
wrapmargin and textwidth cause the data to wrap at the point specified. Although both of these break on whitespace by default.
If tw=255 and wrap is on the screen will show something like 3 full 80 characters display lines and a short 15 character line (given lucky white space). If nowrap is set the display will scroll right. Of course the above assumes the standard 80 character line, but since you said you were in the native command line that is a somewhat reasonable assumption.
Okay, another thought. :set compatible
make vim compatible with vi. This should override any vim special features leaving you with a smaller set of settings to worry about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.