[vim] add fzf for both macos and ubuntu

pull/28/head
Alpha Chen 7 years ago
parent 53c30d4b18
commit 7957168744

@ -181,8 +181,12 @@ nnoremap <leader>a :A<cr>
nnoremap <leader>d :Dispatch<cr>
" fzf
if isdirectory('/usr/local/opt/fzf')
set rtp+=/usr/local/opt/fzf
if executable('fzf')
if isdirectory('/usr/local/opt/fzf')
set rtp+=~/usr/local/opt/fzf
elseif isdirectory('/home/alpha/.fzf')
set rtp+=~/.fzf
endif
nmap <Leader>b :Buffers<CR>
nmap <Leader>f :Files<CR>
nmap <Leader>t :Tags<CR>

Loading…
Cancel
Save