~kiril/vimfiles

8f21488fe2663d1336db31253fd976dd2feddc82 — Kiril Vladimirov 10 months ago b579ac1
Replace ctrlp with fzf
3 files changed, 17 insertions(+), 13 deletions(-)

M plugs.vim
M startup/mappings.vim
M startup/plugins.vim
M plugs.vim => plugs.vim +4 -3
@@ 34,9 34,6 @@ Plug 'ivalkeen/nerdtree-execute', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] }
" highlights trailing whitespace in red and provides :StripWhitespace to fix it
Plug 'ntpeters/vim-better-whitespace'

" fuzzy file, buffer, mru, tag, etc finder
Plug 'ctrlpvim/ctrlp.vim'

" provides a much simpler way to use some motions in vim
Plug 'easymotion/vim-easymotion'



@@ 108,6 105,10 @@ Plug 'pechorin/any-jump.vim'
" parse stack traces
Plug 'mattboehm/vim-unstack'

" fzf
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'

"" filetypes

" git

M startup/mappings.vim => startup/mappings.vim +13 -6
@@ 75,9 75,19 @@ nnoremap <Leader>> :SidewaysRight<CR>
nnoremap ]t :tnext<CR>
nnoremap [t :tprev<CR>

" CtrlP
let g:ctrlp_map = 'gp'
nnoremap g. :CtrlPTag<cr>
" Mapping selecting mappings
nnoremap gp         :Files<cr>
nnoremap g.         :Tags<cr>
nnoremap <leader>p  :GFiles<cr>
nnoremap <leader>be :Buffers<cr>
nnoremap <leader>fl :Lines<cr>
nnoremap <leader>rg :Rg <C-R><C-W><cr>
nnoremap <leader>h  :History<cr>
nnoremap <leader>M  :Marks<cr>

" Insert mode completion
imap <c-x><c-f> <plug>(fzf-complete-path)
imap <c-x><c-l> <plug>(fzf-complete-line)

" unstack
let g:unstack_mapkey='<Leader>T'


@@ 98,9 108,6 @@ xmap gs <plug>(GrepperOperator)
" Repeat last macro
nnoremap <expr> <CR> empty(&buftype) ? '@@' : '<CR>'

" List open buffers and expect a number which of them to open
nnoremap <leader>be :ls<CR>:b

" fugitive
map <leader>g :Git<CR>


M startup/plugins.vim => startup/plugins.vim +0 -4
@@ 58,10 58,6 @@ let g:tabman_number = 0
let g:tabman_specials = 1
let g:tabman_width = 30

" CtrlP
let g:ctrlp_match_window = 'top,order:btt,min:1,max:10,results:10'
let g:ctrlp_working_path_mode = 'wa'

" AutoTag
let g:autotagTagsFile = '.tags'