Browse Source

switch from ctrl-p to fzf

coc
Schneider 7 years ago
parent
commit
4a94bedfb0
  1. 6
      vimrc.symlink
  2. 6
      zsh/custom.zsh

6
vimrc.symlink

@ -17,7 +17,6 @@ Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-sensible'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': 'NERDTreeToggle' }
Plug 'kien/ctrlp.vim'
Plug 'scrooloose/nerdcommenter'
"Plug 'myusuf3/numbers.vim'
Plug 'Shougo/neocomplete.vim'
@ -33,6 +32,7 @@ Plug 'altercation/vim-colors-solarized'
Plug 'godlygeek/tabular' " Align text on symbols
Plug 'szw/vim-tags' , { 'for' : 'php' } " tags support
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " fuzzy file finder
Plug 'junegunn/fzf.vim' " vim integration for fzf
Plug 'airblade/vim-gitgutter' " git status in gutter column
" html / templates
@ -139,6 +139,10 @@ let mapleader = ","
" CtrlP for Tags
nnoremap <leader><C-p> :CtrlPTag<cr>
" fzf bindings
nmap <C-p> :Files<CR>
nmap <leader><C-p> :Tags<CR>
" Toggle NERDTree
nmap <silent> <leader>k :NERDTreeToggle<cr>
" expand to the path of the file in the current buffer

6
zsh/custom.zsh

@ -13,3 +13,9 @@ if hash gulp 2&> /dev/null; then
eval "$(gulp --completion=zsh)"
fi
# fzf settings
if hash ag 2&> /dev/null; then
# Use ag instead of find and exclude .gitignored files
export FZF_DEFAULT_COMMAND='ag -g ""'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
fi
Loading…
Cancel
Save