About: Shell script to use grep with gvim   Sponge Permalink

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

See Find in files within Vim. Tip 1392 Printable Monobook Previous Next created November 21, 2006· complexity basic· author Mauro · version 6.0 With bash or ksh add on .bashrc or on .kshrc: function vimgrep { vimgrep_temp_file=/tmp/vimgrep_$$.tmp find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.icc" \) -print -follow | grep -v "CVS/" | sed "s/ /\\\/g" | xargs egrep -H -n -e $* > $vimgrep_temp_file gvim -q $vimgrep_temp_file -c copen rm $vimgrep_temp_file } and type from shell: $ vimgrep searchstring In Vim you can set grepprg to vimgrep: :set grepprg=vimgrep

AttributesValues
rdfs:label
  • Shell script to use grep with gvim
rdfs:comment
  • See Find in files within Vim. Tip 1392 Printable Monobook Previous Next created November 21, 2006· complexity basic· author Mauro · version 6.0 With bash or ksh add on .bashrc or on .kshrc: function vimgrep { vimgrep_temp_file=/tmp/vimgrep_$$.tmp find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.icc" \) -print -follow | grep -v "CVS/" | sed "s/ /\\\/g" | xargs egrep -H -n -e $* > $vimgrep_temp_file gvim -q $vimgrep_temp_file -c copen rm $vimgrep_temp_file } and type from shell: $ vimgrep searchstring In Vim you can set grepprg to vimgrep: :set grepprg=vimgrep
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1391(xsd:integer)
Author
  • Mauro
Complexity
  • basic
Created
  • 2006-11-21(xsd:date)
ID
  • 1392(xsd:integer)
NEXT
  • 1393(xsd:integer)
Rating
  • 32(xsd:integer)
abstract
  • See Find in files within Vim. Tip 1392 Printable Monobook Previous Next created November 21, 2006· complexity basic· author Mauro · version 6.0 With bash or ksh add on .bashrc or on .kshrc: function vimgrep { vimgrep_temp_file=/tmp/vimgrep_$$.tmp find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.icc" \) -print -follow | grep -v "CVS/" | sed "s/ /\\\/g" | xargs egrep -H -n -e $* > $vimgrep_temp_file gvim -q $vimgrep_temp_file -c copen rm $vimgrep_temp_file } and type from shell: $ vimgrep searchstring In Vim you can set grepprg to vimgrep: :set grepprg=vimgrep
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