Mercurial > dotfiles.old
comparison vimrc @ 256:f051de40b409 default tip
Add fzf as fuzzy file finder in vim
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 04 Mar 2015 22:05:53 +0100 |
parents | b9112d1b6ef3 |
children |
comparison
equal
deleted
inserted
replaced
255:b9112d1b6ef3 | 256:f051de40b409 |
---|---|
34 Plug 'tpope/vim-commentary' | 34 Plug 'tpope/vim-commentary' |
35 | 35 |
36 " Moving in files | 36 " Moving in files |
37 Plug 'wellle/targets.vim' | 37 Plug 'wellle/targets.vim' |
38 Plug 'rking/ag.vim' | 38 Plug 'rking/ag.vim' |
39 | |
40 " Finding files | |
41 Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' } | |
39 | 42 |
40 " Command line | 43 " Command line |
41 Plug 'tpope/vim-eunuch', { 'on' : ['Remove', 'Unlink', 'Move', 'Rename', 'Mkdir', 'Chmod', 'Find', 'Locate', 'SudoEdit', 'SudoWrite']} | 44 Plug 'tpope/vim-eunuch', { 'on' : ['Remove', 'Unlink', 'Move', 'Rename', 'Mkdir', 'Chmod', 'Find', 'Locate', 'SudoEdit', 'SudoWrite']} |
42 | 45 |
43 " Syntax and checking | 46 " Syntax and checking |
115 set linebreak | 118 set linebreak |
116 set breakindent | 119 set breakindent |
117 set lbr | 120 set lbr |
118 set tabstop=2 shiftwidth=2 | 121 set tabstop=2 shiftwidth=2 |
119 | 122 |
123 set magic | |
124 | |
120 " Theme and style | 125 " Theme and style |
121 set t_Co=256 | 126 set t_Co=256 |
122 set background=dark | 127 set background=dark |
123 colorscheme Tomorrow-Night | 128 colorscheme Tomorrow-Night |
124 set guifont=Fira\ Mono:h11 | 129 set guifont=Fira\ Mono:h11 |
455 execute "normal! :Ag --literal " . shellescape(@@) . "\<cr>" | 460 execute "normal! :Ag --literal " . shellescape(@@) . "\<cr>" |
456 | 461 |
457 let @@ = reg_save | 462 let @@ = reg_save |
458 endfunction | 463 endfunction |
459 " }}} | 464 " }}} |
465 " FZF {{{ | |
466 nnoremap <silent> <C-p> :call fzf#run({'tmux_height': '20%', 'sink': 'e'})<CR> | |
467 " }}} | |
460 | 468 |
461 " Load local vimrc | 469 " Load local vimrc |
462 if filereadable($HOME . "/.vimrc.local") | 470 if filereadable($HOME . "/.vimrc.local") |
463 source ~/.vimrc.local | 471 source ~/.vimrc.local |
464 endif | 472 endif |