About: Highlight all search pattern matches   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : dbkwik.org associated with source dataset(s)

To highlight all search matches, set the following option: :set hlsearch With the defaults, setting this option causes all text matching the current search to be highlighted using the Search highlight group, which adds a yellow background to the current highlighting. See [help hl-Search], or type :hi Search to see what color you have it set to. You can easily change the default highlighting with, for example, :hi Search guibg=LightBlue. To disable the highlighting temporarily, enter (this is a command, not an option): :nohlsearch :set nohlsearch :nnoremap :nohlsearch

AttributesValues
rdfs:label
  • Highlight all search pattern matches
rdfs:comment
  • To highlight all search matches, set the following option: :set hlsearch With the defaults, setting this option causes all text matching the current search to be highlighted using the Search highlight group, which adds a yellow background to the current highlighting. See [help hl-Search], or type :hi Search to see what color you have it set to. You can easily change the default highlighting with, for example, :hi Search guibg=LightBlue. To disable the highlighting temporarily, enter (this is a command, not an option): :nohlsearch :set nohlsearch :nnoremap :nohlsearch
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 12(xsd:integer)
Category
  • Searching
Author
  • Yegappan
Complexity
  • basic
Created
  • 2001(xsd:integer)
ID
  • 14(xsd:integer)
NEXT
  • 15(xsd:integer)
Rating
  • 562(xsd:integer)
abstract
  • To highlight all search matches, set the following option: :set hlsearch With the defaults, setting this option causes all text matching the current search to be highlighted using the Search highlight group, which adds a yellow background to the current highlighting. See [help hl-Search], or type :hi Search to see what color you have it set to. You can easily change the default highlighting with, for example, :hi Search guibg=LightBlue. To disable the highlighting temporarily, enter (this is a command, not an option): :nohlsearch This command (which can be abbreviated to :noh) removes the highlighting for the current search. The highlighting returns for the next search. If you do this often, put a mapping in your vimrc, like this: " Press Space to turn off highlighting and clear any message already displayed. :nnoremap :nohlsearch:echo To disable highlighting completely, even after a subsequent search, use: :set nohlsearch If you want to be able to enable/disable highlighting quickly, you can map a key to toggle the hlsearch option: " Press F4 to toggle highlighting on/off, and show current value. :noremap :set hlsearch! hlsearch? Or, press return to temporarily get out of the highlighted search. :nnoremap :nohlsearch Highlighting can be enabled on Vim startup, when reading the viminfo file. Add the following to your vimrc if you want Vim to start with no search highlighting: :set viminfo^=h
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software