Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (43 sloc) 2.04 kb
dfc735e @pebble8888 Version 2.1: Initial upload
pebble8888 authored
1 This is a mirror of http://www.vim.org/scripts/script.php?script_id=4295
2
3 smartgrep
4 =======
5 Grep word in source file excluding comment for vim plugin.
6
7 Support OS
8 =======
9 Unix, MacOS X, Windows
10
11 Suport Language and Comment Type
12 =======
13 C, C++, Objective-C, C#(CSharp), Java Script /* */, //
14
15 Usage (smartgrep.vim command)
16 =======
17 Define g:base_dir in your .vimrc file.
18 example:
19 let g:base_dir="/develop/"
20
21 ,g -> recursive word grep for c,h file exclude comment by mouse cursored word
22 ,h -> recursive word grep for h file exclude comment by mouse cursored word
23 :Rn -> recursive word grep for c,h file include comment
24 :Rh -> recursive word grep for h file exclude comment
25 :R -> recursive word grep for c,h file exclude comment
26 :Rno -> recursive grep for c,h file include comment
27 :Rho -> recursive grep for h file exclude comment
28 :Ro -> recursive grep for c,h file exclude comment
29 :Rl -> recursive word grep for c,h file exclude comment in sys_dir_w
30 :Rw -> recursive word grep for c,h file exclude comment in sys_dir_l
31
32 Usage (smartgrep binary)
33 =======
34 $ cd {directory-you-want-to-grep}
35 $ smartgrep
36 Usage: smartgrep /h {word} : recursive grep for .h excluding comment
37 /b {word} : recursive grep for .cpp .c .mm .m .cs .js .h excluding comment
38 /n {word} : recursive grep for .cpp .c .mm .m .cs .js .h including comment
39 /hw {word} : recursive word grep for .h excluding comment
40 /bw {word} : recursive word grep for .cpp .c .mm .m .cs .js .h excluding comment
41 /nw {word} : recursive word grep for .cpp .c .mm .m .cs .js .h including comment
42
43 INSTALL
44 =======
45 If you are Windows or Mac OS X user, read ./plugin/smartgrep.vim file.
46 If you are Unix user, type 'make + [enter]' and read ./plugin/smartgrep.vim file.
47
48 git hub repogitory
49 =======
50 https://github.com/pebble8888/smartgrep
51
52 If you have any comment, please issue it in github;
53
Something went wrong with that request. Please try again.