Skip to content

Instantly share code, notes, and snippets.

@wridgers
Created October 31, 2013 10:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wridgers/7247262 to your computer and use it in GitHub Desktop.
Unite config for vim
" -------------------------------------------------------------------------------
" - unite
" -------------------------------------------------------------------------------
let g:unite_source_history_yank_enable = 1
let g:unite_data_directory='~/.vim/.cache/unite'
let g:unite_source_rec_max_cache_files=50000
let g:unite_enable_start_insert = 1
let g:unite_split_rule = "botright"
let g:unite_force_overwrite_statusline = 0
let g:unite_winheight = 10
call unite#custom_source('file_rec,file_rec/async,file_mru,file,buffer,grep',
\ 'ignore_pattern', join([
\ '\.git/',
\ ], '\|'))
" fuzzy matcher and sort everything
call unite#filters#matcher_default#use(['matcher_fuzzy'])
call unite#filters#sorter_default#use(['sorter_rank'])
nnoremap <leader>b :Unite buffer<cr>
nnoremap <leader>f :Unite file_rec<cr>
nnoremap <leader>g :Unite grep:.<cr>
nnoremap <leader>t :Unite tag<cr>
nnoremap <leader>y :Unite history/yank<cr>
" old habits die hard
nnoremap <C-P> :Unite buffer file_rec<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment