About: Search for current word in multiple files   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Enter the command :set grepprg? to determine what program is used on your system to execute the :grep command. If it is the grep utility, the following mappings allow searching files in a directory for the word under the cursor. :nnoremap gr :grep * :nnoremap Gr :grep %:p:h/* :nnoremap gR :grep '\b\b' * :nnoremap GR :grep '\b\b' %:p:h/* The first mapping searches for the text in the word under the cursor (like g*) in any of the files in the current directory. The third mapping searches for the whole word under the cursor (like *) in any of the files in the current directory.

AttributesValues
rdfs:label
  • Search for current word in multiple files
rdfs:comment
  • Enter the command :set grepprg? to determine what program is used on your system to execute the :grep command. If it is the grep utility, the following mappings allow searching files in a directory for the word under the cursor. :nnoremap gr :grep * :nnoremap Gr :grep %:p:h/* :nnoremap gR :grep '\b\b' * :nnoremap GR :grep '\b\b' %:p:h/* The first mapping searches for the text in the word under the cursor (like g*) in any of the files in the current directory. The third mapping searches for the whole word under the cursor (like *) in any of the files in the current directory.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 122(xsd:integer)
Category
  • Searching
Complexity
  • basic
Created
  • 2001(xsd:integer)
ID
  • 123(xsd:integer)
NEXT
  • 124(xsd:integer)
Rating
  • 17(xsd:integer)
abstract
  • Enter the command :set grepprg? to determine what program is used on your system to execute the :grep command. If it is the grep utility, the following mappings allow searching files in a directory for the word under the cursor. :nnoremap gr :grep * :nnoremap Gr :grep %:p:h/* :nnoremap gR :grep '\b\b' * :nnoremap GR :grep '\b\b' %:p:h/* The first mapping searches for the text in the word under the cursor (like g*) in any of the files in the current directory. The second mapping searches for the text in the word under the cursor (like g*) in any of the files in the same directory as the current file. The third mapping searches for the whole word under the cursor (like *) in any of the files in the current directory. The fourth mapping searches for the whole word under the cursor (like *) in any of the files in the same directory as the current file. On a Windows system, 'grepprg' may be set to use the findstr utility. In that case, the last two mappings should be: :nnoremap gR :grep "\<\>" * :nnoremap GR :grep "\<\>" %:p: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