" Dirvish file browser. " Use relative paths if there is no `conceal` ability. let g:dirvish_relative_paths = (v:version <= 703 ? 1 : 0) augroup dirvishCustomisation autocmd! " Allow fugitive.vim commands in dirvish buffers. autocmd FileType dirvish call fugitive#detect(@%) " Use 'o' to (o)pen and 'i' to spl(i)t. autocmd FileType dirvish let s:nowait = (v:version > 703 ? '' : '') \| execute 'nnoremap '.s:nowait.' o :.call dirvish#open("edit", 0)' \| execute 'nnoremap '.s:nowait.' i :.call dirvish#open("split", 1)' \| execute 'xnoremap '.s:nowait.' O :call dirvish#open("edit", 0)' \| execute 'xnoremap '.s:nowait.' I :call dirvish#open("split", 1)' augroup END " CtrlP - Fuzzy Finder in Vimscript "let g:ctrlp_map = 'p' " Use `ag` as fallback if available. if executable('ag') let s:fallback = 'ag %s -l --nocolor -g ""' else let s:fallback = 'find %s -type f' endif let g:ctrlp_user_command = [ \ '.git', \ 'cd %s && git ls-files . -co --exclude-standard', \ s:fallback \] let g:ctrlp_extensions = ['funky'] " Function definition jumping with CtrlP's Funky plugin. map f :CtrlPFunky " FZF - Fuzzy Finder in Go/Ruby map p :FZF