diff --git a/vimrc b/vimrc index f9199ac..38b1baa 100644 --- a/vimrc +++ b/vimrc @@ -34,7 +34,7 @@ Plug 'jiangmiao/auto-pairs' " Undo Plug 'mbbill/undotree', { 'on': 'UndotreeToggle' } " Search with ack -Plug 'mileszs/ack.vim' +Plug 'dyng/ctrlsf.vim' " Comment function Plug 'scrooloose/nerdcommenter' " Filebrowser, load on first invocation of 'NERDTreeToggle' @@ -59,8 +59,6 @@ Plug 'altercation/vim-colors-solarized' Plug 'pangloss/vim-javascript' Plug 'leafgarland/typescript-vim' Plug 'peitalin/vim-jsx-typescript' -" Better buffer browser -Plug 'jeetsukumaran/vim-buffergator' " Initialize plugin system call plug#end() @@ -244,11 +242,17 @@ map b :buffers:buffer " swap word with next word nmap gw "_yiw:s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/ -" map F to recursive search -map F :Ack - " bind ag(the_silver_searcher) to ack let g:ackprg = 'ag --vimgrep' +" ctrlsf.vim plugin options +nmap f CtrlSFPrompt +vmap F CtrlSFVwordExec +nnoremap t :CtrlSFToggle +inoremap t :CtrlSFToggle +let g:ctrlsf_position = 'bottom' +let g:ctrlsf_winsize = '30%' +let g:ctrlsf_auto_focus = { "at": "done", "duration_less_than": 2000 } + " use fuzzy finder nnoremap :GFiles -co --exclude-standard -- ':!:*.jpeg' ':!:*.jpg' ':!:*.pdf' ':!:*.png' ':!:*.svg' ':!:*.ttf' ':!:.*.woff' ':!:.*.woff2'