From 1f26b892a641c25f570330fc279dda9092a7dbe8 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 20 Dec 2016 14:17:05 +0100 Subject: [PATCH] try out fzf --- config/nvim/init.vim | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 1194512..9e8999c 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -59,7 +59,6 @@ nnoremap cp :cprevious " Plugged " ------- call plug#begin('~/.config/nvim/plugged') -Plug 'ctrlpvim/ctrlp.vim' Plug 'bling/vim-airline' Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'junegunn/vim-easy-align' @@ -70,20 +69,16 @@ Plug 'Valloric/YouCompleteMe' Plug 'chriskempson/base16-vim' Plug 'LaTeX-Box-Team/LaTeX-Box', { 'for': 'tex' } Plug 'kassio/neoterm', { 'on': 'T' } -Plug 'mhinz/vim-grepper', { 'on': 'Grepper' } Plug 'junegunn/vim-peekaboo' Plug 'ludovicchabant/vim-gutentags' Plug 'majutsushi/tagbar' -Plug 'neovimhaskell/haskell-vim' +Plug 'neovimhaskell/haskell-vim', { 'for': 'haskell' } Plug 'haya14busa/incsearch.vim' +Plug 'junegunn/fzf.vim' call plug#end() " Plugin configuration " -------------------- -let g:ctrlp_map='l' -let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files . -co --exclude-standard'] -nnoremap s :CtrlPTag - let g:airline_powerline_fonts=1 nnoremap t :NERDTreeToggle @@ -114,13 +109,6 @@ colorscheme base16-brewer " damn base16's grey linenr background highlight LineNr ctermfg=08 ctermbg=NONE -nnoremap g :Grepper -let g:grepper={ - \ 'tools': ['rg', 'git', 'grep'], - \ 'open': 1, - \ 'jump': 0, - \ } - let g:gutentags_cache_dir = '~/.cache/gutentag' nnoremap o :Tagbar @@ -168,6 +156,16 @@ map * (incsearch-nohl-*) map # (incsearch-nohl-#) map g* (incsearch-nohl-g*) map g# (incsearch-nohl-g#) -" Plugged }}} + +" path for fzf install +set rtp+=/usr/share/vim/vimfiles/ +command! -bang -nargs=* Rg + \ call fzf#vim#grep( + \ 'rg --follow --column --line-number --no-heading --color=always '.shellescape(), 0, + \ 0) +nnoremap g :Rg +nnoremap l :Files +nnoremap s :Tags +" Plugged }}} " vim: foldmethod=marker