Update README
This commit is contained in:
parent
c9bcdb89a6
commit
71fd2ffdc4
@ -9,15 +9,16 @@ Use [Vundle][] or [pathogen][] is suggested.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Add the following three lines to your vimrc file.
|
After installed. Just press / or ? for search, it will map to :M command.
|
||||||
|
|
||||||
nnoremap <expr> / ":<C-U>".v:count1."M/"
|
You can call EregexToggle funtion to toggle the keymapping. For example,
|
||||||
nnoremap <expr> ? ":<C-U>".v:count1."M?"
|
add the following line into your .vimrc file:
|
||||||
nnoremap ,/ /
|
|
||||||
nnoremap .? ?
|
|
||||||
|
|
||||||
Now you can use / to find. :%S// (uppercase S) to replace.
|
nnoremap <leader>/ :call EregexToggle()<CR>
|
||||||
You can use ,/ to use the origin / .
|
|
||||||
|
Then you can use <leader>/ to toggle eregex.vim.
|
||||||
|
|
||||||
|
For replacement, use :%S// (uppercase S) to use perl style regexp.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user