sponsor Vim development Vim logo Vim Book Ad

smartgrep : Grep word in source file excluding comment

 script karma  Rating 0/0, Downloaded by 787  Comments, bugs, improvements  Vim wiki

created by
pebble on software
 
script type
utility
 
description
smartgrep
=======
Grep word in source file excluding comment for vim plugin.

Support OS
=======
Unix, MacOS X, Windows

Suport Language and Comment Type
=======
C, C++, Objective-C, C#(CSharp), Java Script   /* */, //

Usage (smartgrep.vim command)
=======
Define g:base_dir in your .vimrc file.  
example:  
let g:base_dir="/develop/"  
  
,g   -> recursive word grep for c,h file exclude comment by mouse cursored word  
,h   -> recursive word grep for h file exclude comment by mouse cursored word  
:Rn  -> recursive word grep for c,h file include comment  
:Rh  -> recursive word grep for h file exclude comment  
:R   -> recursive word grep for c,h file exclude comment  
:Rno -> recursive grep for c,h file include comment  
:Rho -> recursive grep for h file exclude comment  
:Ro  -> recursive grep for c,h file exclude comment  
:Rl  -> recursive word grep for c,h file exclude comment in sys_dir_w  
:Rw  -> recursive word grep for c,h file exclude comment in sys_dir_l  

Usage (smartgrep binary)
=======
$ cd {directory-you-want-to-grep}  
$ smartgrep  
Usage: smartgrep /h {word}  : recursive      grep for .h                        excluding comment  
                 /b {word}  : recursive      grep for .cpp .c .mm .m .cs .js .h excluding comment  
                 /n {word}  : recursive      grep for .cpp .c .mm .m .cs .js .h including comment  
                 /hw {word} : recursive word grep for .h                        excluding comment  
                 /bw {word} : recursive word grep for .cpp .c .mm .m .cs .js .h excluding comment  
                 /nw {word} : recursive word grep for .cpp .c .mm .m .cs .js .h including comment  

INSTALL
=======
If you are Windows or Mac OS X user, read ./plugin/smartgrep.vim file.  
If you are Unix user, type 'make + [enter]' and read ./plugin/smartgrep.vim file.  

git hub repogitory
=======
https://github.com/pebble8888/smartgrep

If you have any comment, please issue it in github;
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
smartgrep_2_1.zip 2.1 2012-10-27 7.0 pebble on software Initial upload
ip used for rating: 18.191.181.231

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github