LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 03: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:	13
Size:	121.3 KB
ID:	436  
 
Old 04-09-2009, 04: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, 04:31 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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, 05: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


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 09:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 01:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 07:40 PM


All times are GMT -5. The time now is 04:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration