2010-10-15 10:49:29 -04:00
|
|
|
# eregex.vim
|
|
|
|
|
2010-10-15 11:21:53 -04:00
|
|
|
## Installation
|
|
|
|
|
2013-02-21 01:51:27 -05:00
|
|
|
Use [Vundle][] or [pathogen][] is suggested.
|
2010-10-15 11:21:53 -04:00
|
|
|
|
2013-02-21 01:51:27 -05:00
|
|
|
[Vundle]:https://github.com/gmarik/vundle
|
|
|
|
[pathogen]:https://github.com/tpope/vim-pathogen
|
2010-10-15 11:21:53 -04:00
|
|
|
|
2013-02-22 01:35:37 -05:00
|
|
|
## Quick Start
|
2010-10-15 11:21:53 -04:00
|
|
|
|
2013-02-21 11:17:06 -05:00
|
|
|
After installed. Just press / or ? for search, it will map to :M command.
|
2010-10-15 11:21:53 -04:00
|
|
|
|
2013-02-21 11:17:06 -05:00
|
|
|
You can call EregexToggle funtion to toggle the keymapping. For example,
|
|
|
|
add the following line into your .vimrc file:
|
2010-10-15 11:21:53 -04:00
|
|
|
|
2013-02-22 01:30:39 -05:00
|
|
|
nnoremap <leader>/ :call eregex#toggle()<CR>
|
2013-02-21 11:17:06 -05:00
|
|
|
|
2013-02-21 11:21:41 -05:00
|
|
|
Then you can use <leader>/ to toggle eregex.vim.
|
2013-02-21 11:17:06 -05:00
|
|
|
|
|
|
|
For replacement, use :%S// (uppercase S) to use perl style regexp.
|
2010-10-15 11:21:53 -04:00
|
|
|
|
2013-02-22 01:35:37 -05:00
|
|
|
See `:help eregex` for more information.
|
|
|
|
|
|
|
|
## Config
|
|
|
|
|
|
|
|
Default disable, put this line in vimrc:
|
|
|
|
|
|
|
|
let g:eregex_default_enable = 0
|
|
|
|
|
2010-10-15 11:21:53 -04:00
|
|
|
## License
|
|
|
|
|
2010-10-15 10:50:38 -04:00
|
|
|
Author : 安久津
|
|
|
|
Origin : [eregex.vim][origin]
|
|
|
|
Maintainer : othree
|
2010-10-15 10:49:29 -04:00
|
|
|
|
2013-02-21 01:51:27 -05:00
|
|
|
`:help eregex-license-to-use` for license information.
|
2010-10-15 11:21:53 -04:00
|
|
|
|
2010-10-15 10:49:29 -04:00
|
|
|
[origin]:http://www.vector.co.jp/soft/unix/writing/se265654.html
|