Swap ctrlp to fzf for faster fuzzy finds

This commit is contained in:
Andrew Tomaka 2017-10-17 23:46:48 -04:00
parent 2b9e9ca134
commit 47a3bf1dfb
No known key found for this signature in database
GPG key ID: C78D1A81582BAC86
2 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,7 @@
* [tmux](https://github.com/tmux/tmux) * [tmux](https://github.com/tmux/tmux)
* [zsh](https://github.com/zsh-users/zsh) * [zsh](https://github.com/zsh-users/zsh)
* [neovim](https://github.com/neovim/neovim) * [neovim](https://github.com/neovim/neovim)
* [fzf](https://github.com/junegunn/fzf)
## Setup ## Setup

6
vimrc
View file

@ -8,7 +8,8 @@ Plug 'joshdick/onedark.vim'
" keepers " keepers
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug 'atomaka/ZoomWin' " vim-scripts not up to date Plug 'atomaka/ZoomWin' " vim-scripts not up to date
Plug 'ctrlpvim/ctrlp.vim' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'ntpeters/vim-better-whitespace' Plug 'ntpeters/vim-better-whitespace'
Plug 'rbgrouleff/bclose.vim' Plug 'rbgrouleff/bclose.vim'
Plug 'tpope/vim-endwise' Plug 'tpope/vim-endwise'
@ -104,6 +105,9 @@ map Y y$
vnoremap > >gv vnoremap > >gv
vnoremap < <gv vnoremap < <gv
" Make fzf act like ctrlp
nnoremap <C-p> :Files<CR>
" ZoomWin " ZoomWin
nmap <c-w>z <Plug>ZoomWin nmap <c-w>z <Plug>ZoomWin