Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 04-09-2009, 02:37 PM   #1
Registered: Jul 2005
Posts: 33

Rep: Reputation: 15
Newbie question on VI


I have recently started using vim and when I was editing a bash script I accidentally did something that I'm not sure what exactly it was, and then all occurrences of the word "PBS" got highlighted. I couldn't find out how I did this or how I can get rid of it, whenever I type PBS, it is highlighted now. Can anyone tell me how this might have happened and how I can take it back?

I'm attaching a screen shot...

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	13
Size:	121.3 KB
ID:	436  
Old 04-09-2009, 03:13 PM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
I'm more of an Emacs junkie, but I have had the same thing happen to me when I have had to use vim - I think it is the "#" command...not entirely sure, though.

The same thing happens to me in Emacs, on occasion, when I want to go "C-x, C-s" to save, and I accidentally hit "C-s" first, in which case I just hit Esc three times to exit the active minibuffer command, but I do not know how to do that with vim.
Old 04-09-2009, 03:31 PM   #3
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,239
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Theres a nice vim tutorial HERE

hls = High Light Search

:set hls!

all instances of the search term will be highlighted.

You may have hls enabled in your .vimrc
Old 04-09-2009, 04:29 PM   #4
Registered: Jul 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks a lot for the really swift response. You were right, it was hls


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 08:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 12:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration