LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
Newbie question on VI


Hi,

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:	15
Size:	121.3 KB
ID:	436  
 
Old 04-09-2009, 03:13 PM   #2
indienick
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
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

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

hls = High Light Search

:set hls!
/searchterm


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
zirtik
Member
 
Registered: Jul 2005
Posts: 33

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

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