|
|
|
@ -74,6 +74,29 @@ set hlsearch
|
|
|
|
|
set ignorecase
|
|
|
|
|
set smartcase
|
|
|
|
|
|
|
|
|
|
" incsearch.vim
|
|
|
|
|
augroup incsearch-keymap
|
|
|
|
|
autocmd!
|
|
|
|
|
autocmd VimEnter * call s:incsearch_keymap()
|
|
|
|
|
augroup END
|
|
|
|
|
function! s:incsearch_keymap()
|
|
|
|
|
IncSearchNoreMap <C-f> <Right>
|
|
|
|
|
IncSearchNoreMap <C-b> <Left>
|
|
|
|
|
endfunction
|
|
|
|
|
let g:incsearch#auto_nohlsearch = 1
|
|
|
|
|
let g:incsearch#consistent_n_direction = 1
|
|
|
|
|
let g:incsearch#magic = '\v'
|
|
|
|
|
let g:incsearch#emacs_like_keymap = 1
|
|
|
|
|
map / <Plug>(incsearch-forward)
|
|
|
|
|
map ? <Plug>(incsearch-backward)
|
|
|
|
|
map g/ <Plug>(incsearch-stay)
|
|
|
|
|
map n <Plug>(incsearch-nohl-n)
|
|
|
|
|
map N <Plug>(incsearch-nohl-N)
|
|
|
|
|
map * <Plug>(incsearch-nohl-*)
|
|
|
|
|
map # <Plug>(incsearch-nohl-#)
|
|
|
|
|
map g* <Plug>(incsearch-nohl-g*)
|
|
|
|
|
map g# <Plug>(incsearch-nohl-g#)
|
|
|
|
|
|
|
|
|
|
" encoding
|
|
|
|
|
set encoding=utf8
|
|
|
|
|
set fileencoding=utf8
|
|
|
|
|