Update README

This commit is contained in:
othree 2013-02-22 00:17:06 +08:00
parent c9bcdb89a6
commit 71fd2ffdc4

View File

@ -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