This commit is contained in:
othree_kao 2013-02-22 17:17:27 +08:00
parent 2d1b3e9dff
commit c8801cd40e
2 changed files with 10 additions and 10 deletions

View File

@ -30,8 +30,8 @@ Default disable, put this line in vimrc:
Custom search delimeter:
let g:eregx_forward_delim = '/'
let g:eregx_backward_delim = '?'
let g:eregex_forward_delim = '/'
let g:eregex_backward_delim = '?'
## Changes

View File

@ -287,12 +287,12 @@ let s:version = s:maj + s:min
unlet s:tmp s:maj s:min
"v260
if !exists('g:eregx_forward_delim')
let g:eregx_forward_delim = '/'
if !exists('g:eregex_forward_delim')
let g:eregex_forward_delim = '/'
endif
if !exists('g:eregx_backward_delim')
let g:eregx_backward_delim = '?'
if !exists('g:eregex_backward_delim')
let g:eregex_backward_delim = '?'
endif
let s:enable = 0
@ -303,14 +303,14 @@ function! eregex#toggle(...)
let silent = 1
endif
if s:enable == 0
exec 'nnoremap <expr> '.g:eregx_forward_delim.' ":<C-U>".v:count1."M/"'
exec 'nnoremap <expr> '.g:eregx_backward_delim.' ":<C-U>".v:count1."M?"'
exec 'nnoremap <expr> '.g:eregex_forward_delim.' ":<C-U>".v:count1."M/"'
exec 'nnoremap <expr> '.g:eregex_backward_delim.' ":<C-U>".v:count1."M?"'
if silent != 1
echo "eregx.vim key mapping enabled"
endif
else
exec 'nunmap '.g:eregx_forward_delim
exec 'nunmap '.g:eregx_backward_delim
exec 'nunmap '.g:eregex_forward_delim
exec 'nunmap '.g:eregex_backward_delim
if silent != 1
echo "eregx.vim key mapping disabled"
endif