You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-35Lines changed: 44 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -3,63 +3,72 @@ vim-easygrep
3
3
4
4
Fast and Easy Find and Replace Across Multiple Files
5
5
6
-
EasyGrep is a plugin for performing search and replace operations through multiple files. Vim already has builtin support for searching through files with its 'vimgrep' and 'grep' commands, but EasyGrep makes using them much, much easier. It also provides a powerful "Replace in Files" operation, something that is not very easy to do in Vim by default. With EasyGrep, you can specify with high-precision exactly the type of files you want to search, whether it be all files, only open buffers, only files matching a pattern, etc. Additionally, you can easily specify searching through hidden files, case-sensitivity, performing a recursive search, and many more options that make searching more easy.
6
+
EasyGrep is a plugin for performing search and replace operations through multiple files. Vim already has builtin support for searching through files with its 'vimgrep' and 'grep' commands, but EasyGrep makes using them much, much easier. It also provides a powerful "Replace in Files" operation, something that is not very easy to do in Vim by default. With EasyGrep, you can specify with high-precision exactly the type of files you want to search, whether it be all files, only open buffers, only files matching a pattern, etc. Additionally, you can easily specify searching through hidden files, case-sensitivity, performing a recursive search, and many more options that make searching more easy.
7
7
8
-
EasyGrep provides both key mappings and commands to make search and replace easy. When using EasyGrep, searching for a word is as easy as typing <leader>vv (v v, not double-u) over the word for which you want to search. This search can also be accomplished with the :Grep command and a user-specified pattern. Performing a "replace in files" is similar; type <leader>vr or use the :Replace command. Setting options is easy, simply type <leader>vo or :GrepOptions. EasyGrep provides a great set of defaults but can also be configured to start up just how you like it; see the script for these options. Most vimgrep (and grepprg) options are supported.
8
+
EasyGrep provides both key mappings and commands to make search and replace easy. When using EasyGrep, searching for a word is as easy as typing <leader>vv (v v, not double-u) over the word for which you want to search. This search can also be accomplished with the :Grep command and a user-specified pattern. Performing a "replace in files" is similar; type <leader>vr or use the :Replace command. Setting options is easy, simply type <leader>vo or :GrepOptions. EasyGrep provides a great set of defaults but can also be configured to start up just how you like it; see the script for these options. Most vimgrep (and grepprg) options are supported.
9
9
10
-
For a screencast of the script in action go here: http://downloads.veryspeedy.net/vim/EasyGrep.gif
10
+
For a screencast of the script in action go here: http://downloads.veryspeedy.net/vim/EasyGrep.gif
11
11
12
-
Keymappings:
12
+
## Why EasyGrep?
13
13
14
-
<Leader>vv - Grep for the word under the cursor, match all occurences,
15
-
like |gstar|
16
-
<Leader>vV - Grep for the word under the cursor, match whole word, like
17
-
|star|
18
-
<Leader>va - Like vv, but add to existing list
19
-
<Leader>vA - Like vV, but add to existing list
20
-
<Leader>vr - Perform a global search search on the word under the cursor
21
-
and prompt for a pattern with which to replace it.
22
-
<Leader>vo - Select the files to search in and set grep options
0 commit comments