About: Repeat search using grep   Sponge Permalink

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

Search results are shown in a small window (quickfix mode), use c-n/c-p to move between results. Uses gnu-grep on PC/Unix to search vim \ in files/trees. Based on 'grep-find' which is an emacs commands. " Put this in ~/_vimrc and use g/ to repeat current search as a grep-find. " Usage " /xyz .. not found in current file, so lets look for it in *.* with " g/ .. search for xyz in *.*, next lets look for it in the whole tree " :call Mosh_grep("../..") " :call Mosh_grep("/usr/include","strstr") " GNU-grep -recursive,nocase,linenum,noerror,VimRegexp (in that order). :set grepprg=grep\ -rinsE :map g/ :call Mosh_grep() function! Mosh_grep(...) if a:0 == 0 :exec "grep '".@/."' *.*" elseif a:0 == 1 :exec "grep '".@/."' " a:1 elseif a:0 == 2 :exec "grep" a:2 " " a:1 endif " Optional mappings for

AttributesValues
rdfs:label
  • Repeat search using grep
rdfs:comment
  • Search results are shown in a small window (quickfix mode), use c-n/c-p to move between results. Uses gnu-grep on PC/Unix to search vim \ in files/trees. Based on 'grep-find' which is an emacs commands. " Put this in ~/_vimrc and use g/ to repeat current search as a grep-find. " Usage " /xyz .. not found in current file, so lets look for it in *.* with " g/ .. search for xyz in *.*, next lets look for it in the whole tree " :call Mosh_grep("../..") " :call Mosh_grep("/usr/include","strstr") " GNU-grep -recursive,nocase,linenum,noerror,VimRegexp (in that order). :set grepprg=grep\ -rinsE :map g/ :call Mosh_grep() function! Mosh_grep(...) if a:0 == 0 :exec "grep '".@/."' *.*" elseif a:0 == 1 :exec "grep '".@/."' " a:1 elseif a:0 == 2 :exec "grep" a:2 " " a:1 endif " Optional mappings for
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 824(xsd:integer)
Author
  • mosh
Complexity
  • basic
Created
  • 2004-11-19(xsd:date)
ID
  • 825(xsd:integer)
NEXT
  • 826(xsd:integer)
Rating
  • 30(xsd:integer)
abstract
  • Search results are shown in a small window (quickfix mode), use c-n/c-p to move between results. Uses gnu-grep on PC/Unix to search vim \ in files/trees. Based on 'grep-find' which is an emacs commands. " Put this in ~/_vimrc and use g/ to repeat current search as a grep-find. " Usage " /xyz .. not found in current file, so lets look for it in *.* with " g/ .. search for xyz in *.*, next lets look for it in the whole tree " :call Mosh_grep("../..") " :call Mosh_grep("/usr/include","strstr") " GNU-grep -recursive,nocase,linenum,noerror,VimRegexp (in that order). :set grepprg=grep\ -rinsE :map g/ :call Mosh_grep() function! Mosh_grep(...) if a:0 == 0 :exec "grep '".@/."' *.*" elseif a:0 == 1 :exec "grep '".@/."' " a:1 elseif a:0 == 2 :exec "grep" a:2 " " a:1 endif " Optional mappings for easy navigation of results :map :cnext :map :cprev :copen endfunction
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