Skip to content

Instantly share code, notes, and snippets.

@OliverUv
Created July 7, 2014 15:58
Show Gist options
  • Save OliverUv/2a69c5cf741abda65b89 to your computer and use it in GitHub Desktop.
Save OliverUv/2a69c5cf741abda65b89 to your computer and use it in GitHub Desktop.
function! g:DoUniteFuzzy()
call unite#custom#source('file_rec/async,file/new', 'sorters', 'sorter_rank')
call unite#custom#source('file_rec/async,file/new', 'matchers', 'matcher_fuzzy')
exec "Unite -buffer-name=files file_rec/async file/new"
endfunction
function! g:DoUniteNonFuzzy()
call unite#custom#source('file_rec/async,file/new', 'sorters', 'sorter_nothing')
call unite#custom#source('file_rec/async,file/new', 'matchers', 'matcher_glob')
exec "Unite -buffer-name=files file_rec/async file/new"
endfunction
nnoremap <silent><leader>lr :call g:DoUniteFuzzy()<CR>
nnoremap <silent><leader>lR :call g:DoUniteNonFuzzy()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment