Use fzf instead of ctrlp
This commit is contained in:
parent
b3692ff1e7
commit
a5719e3e30
1 changed files with 19 additions and 21 deletions
|
@ -3,19 +3,23 @@ set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
call vundle#begin()
|
call vundle#begin()
|
||||||
|
|
||||||
" Plugins
|
" Plugins
|
||||||
Plugin 'airblade/vim-gitgutter'
|
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
Plugin 'airblade/vim-gitgutter'
|
||||||
Plugin 'b4b4r07/vim-hcl'
|
Plugin 'b4b4r07/vim-hcl'
|
||||||
|
Plugin 'cespare/vim-toml'
|
||||||
Plugin 'chriskempson/base16-vim'
|
Plugin 'chriskempson/base16-vim'
|
||||||
Plugin 'ctrlpvim/ctrlp.vim'
|
|
||||||
Plugin 'ervandew/supertab'
|
Plugin 'ervandew/supertab'
|
||||||
Plugin 'fatih/vim-go'
|
Plugin 'fatih/vim-go'
|
||||||
|
Plugin 'godlygeek/tabular'
|
||||||
Plugin 'hashivim/vim-terraform'
|
Plugin 'hashivim/vim-terraform'
|
||||||
Plugin 'itchyny/lightline.vim'
|
Plugin 'itchyny/lightline.vim'
|
||||||
Plugin 'joshdick/onedark.vim'
|
Plugin 'joshdick/onedark.vim'
|
||||||
|
Plugin 'junegunn/fzf'
|
||||||
|
Plugin 'junegunn/fzf.vim'
|
||||||
Plugin 'Matt-Deacalion/vim-systemd-syntax'
|
Plugin 'Matt-Deacalion/vim-systemd-syntax'
|
||||||
Plugin 'nanotech/jellybeans.vim'
|
Plugin 'nanotech/jellybeans.vim'
|
||||||
Plugin 'NLKNguyen/papercolor-theme'
|
Plugin 'NLKNguyen/papercolor-theme'
|
||||||
|
Plugin 'plasticboy/vim-markdown'
|
||||||
Plugin 'rust-lang/rust.vim'
|
Plugin 'rust-lang/rust.vim'
|
||||||
Plugin 'scrooloose/syntastic'
|
Plugin 'scrooloose/syntastic'
|
||||||
Plugin 'tomtom/tcomment_vim'
|
Plugin 'tomtom/tcomment_vim'
|
||||||
|
@ -149,28 +153,18 @@ let myvar = "set backupext=_". myvar
|
||||||
execute myvar
|
execute myvar
|
||||||
au BufWritePre * let &backupext = substitute(expand("%:p"), "\/", "_", "g")
|
au BufWritePre * let &backupext = substitute(expand("%:p"), "\/", "_", "g")
|
||||||
|
|
||||||
"" CtrlP
|
|
||||||
let g:ctrlp_match_window = 'top'
|
|
||||||
|
|
||||||
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.class,*/target/*,*/.git/*"
|
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.class,*/target/*,*/.git/*"
|
||||||
" let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
|
|
||||||
let g:ctrlp_custom_ignore = 'node_modules$\|.lock$\|.gitkeep$\|tmp/\|bower_components$\|dist$'
|
|
||||||
|
|
||||||
|
|
||||||
let g:ctrlp_working_path_mode = 'ra'
|
map <silent> <space> :Buffers<cr>
|
||||||
|
map <silent> ,` :Buffers<cr>
|
||||||
map <silent> <space> :CtrlPBuffer<cr>
|
map <silent> ,; :Commits<cr>
|
||||||
map <silent> ,` :CtrlPBuffer<cr>
|
map <silent> ,e :GitFiles<cr>
|
||||||
map <silent> ,; :CtrlPChange<cr>
|
map <silent> ,d :Files<cr>
|
||||||
map <silent> ,e :CtrlPRoot<cr>
|
map <silent> ,f :History<cr>
|
||||||
map <silent> ,d :CtrlPCurWD<cr>
|
map <silent> ,g :BLines<cr>
|
||||||
map <silent> ,f :CtrlPMRUFiles<cr>
|
map <silent> ,/ :Ag<cr>
|
||||||
map <silent> ,g :CtrlPLine<cr>
|
map <silent> ,m :Marks<cr>
|
||||||
map <silent> ,q :CtrlPQuickfix<cr>
|
|
||||||
map <silent> ,/ :CtrlPLine<cr>
|
|
||||||
map <silent> ,m :CtrlPBookmarkDir<cr>
|
|
||||||
map <silent> ,<C-m> :CtrlPBookmarkDirAdd<cr>
|
|
||||||
map <silent> ,n :CtrlPBookmarkDirAdd<cr>
|
|
||||||
|
|
||||||
"" Key bindings
|
"" Key bindings
|
||||||
imap <silent> <c-w>
|
imap <silent> <c-w>
|
||||||
|
@ -407,6 +401,10 @@ set statusline+=%#warningmsg#
|
||||||
set statusline+=%{SyntasticStatuslineFlag()}
|
set statusline+=%{SyntasticStatuslineFlag()}
|
||||||
set statusline+=%*
|
set statusline+=%*
|
||||||
|
|
||||||
|
" Hugo
|
||||||
|
let g:vim_markdown_frontmatter = 1
|
||||||
|
let g:vim_markdown_toml_frontmatter = 1
|
||||||
|
|
||||||
let g:gitgutter_override_sign_column_highlight = 0
|
let g:gitgutter_override_sign_column_highlight = 0
|
||||||
let g:gitgutter_sign_added = '🞥'
|
let g:gitgutter_sign_added = '🞥'
|
||||||
let g:gitgutter_sign_modified = '▲'
|
let g:gitgutter_sign_modified = '▲'
|
||||||
|
|
Loading…
Reference in a new issue