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.
On one of my servers, every time I go to vi my smb.conf, there's a pattern of numbers that is always highlighted yellow. Assuming somehow I did a search or something by accident, but every time i go into this file, those numbers are always highlighted yellow now. How can i turn that off?
I'm sure there's a more "correct" way, but usually I just do a search for jibberish to turn that off. Forward slash to search, then type in something like "hdgwvohdbshfi". It'll say there were no matches, then the highlighting will be gone.
"correct" or not, that worked! that was driving me nuts haha. I wonder what the "correct" way is, maybe I won't mark this as solved quite yet to see if anyone else chimes in with that. Thanks eggroll.
Thanks. Any idea why that would get stuck on inside the file though for that search? Also, whats the shortcut to turn that on? Just trying to understand, and figure out what I accidentally typed to get it to stick like that.
when you search for something like "/test" in a file it will highlight when it finds it. you are using VIM and it keeps history and persists things between usages.
another example of the setting saved is if you open a long file and scroll to the middle of the file then close and reopen it should put you back in the same position. based on the .vimrc in your home directory decides what persists through the sessions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.