From 9a330ae3cbeff95f6e02a2503ebd6d24f6024637 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 28 Feb 2021 16:06:34 +0100 Subject: Switch to fzf.vim instead of ctrlp.vim, Added rc and vf alias for selecting file from dotfiles or current directory --- config/vim/pluggins.vim | 18 ++++++++---------- config/vim/vimrc | 17 +++++++---------- 2 files changed, 15 insertions(+), 20 deletions(-) (limited to 'config/vim') diff --git a/config/vim/pluggins.vim b/config/vim/pluggins.vim index 0915f42..8bd1cf0 100644 --- a/config/vim/pluggins.vim +++ b/config/vim/pluggins.vim @@ -3,7 +3,7 @@ """""""""""""""" call plug#begin($XDG_DATA_HOME . '/vim/plugged') - Plug 'ctrlpvim/ctrlp.vim' " Ctrl-P similar to vsc + Plug 'junegunn/fzf.vim' " file name/tags fuzzy finder (depends on fzf) Plug 'tpope/vim-eunuch' " basic unix command in vim Plug 'tomtom/tcomment_vim' " mininal commenter Plug 'itchyny/lightline.vim' " minimal status bar @@ -14,8 +14,6 @@ call plug#begin($XDG_DATA_HOME . '/vim/plugged') Plug 'ludovicchabant/vim-gutentags' " generate tags in project root Plug 'junegunn/goyo.vim' " generate tags in project root - " Plug 'easymotion/vim-easymotion' " TODO very intresting - " Plug 'mhinz/vim-rfc' " RFC download/syntax/tags Plug 'skammer/vim-css-color' " markdown preview in browser @@ -27,20 +25,20 @@ call plug#begin($XDG_DATA_HOME . '/vim/plugged') Plug 'ziglang/zig.vim' " zig Plug 'nikvdp/ejs-syntax' " ejs - " s19 at home - Plug 'cacharle/vim-42header' " 42 header - " themes " Plug 'joshdick/onedark.vim' " onedark Plug 'dracula/vim', {'as': 'vim'} " dracula Plug 'altercation/vim-colors-solarized' " solarized " intresting but not used - " Plug 'sheerun/vim-polyglot' " better syntax highlight - " Plug 'unblevable/quick-scope' " highlight first char to jump to word - " Plug 'jez/vim-superman' " man pages in vim (too slow) Plug 'vim-scripts/rfc-syntax' " rfc - " Plug 'tacahiroy/ctrlp-funky' " extension to search function + + " my plugins Plug 'cacharle/c_formatter_42.vim' Plug 'cacharle/doxy42.vim' + + " s19 at home + Plug 'cacharle/vim-42header' " 42 header + + " Plug 'ctrlpvim/ctrlp.vim' " Ctrl-P similar to vsc call plug#end() diff --git a/config/vim/vimrc b/config/vim/vimrc index 3aca22c..8b1aa53 100644 --- a/config/vim/vimrc +++ b/config/vim/vimrc @@ -142,10 +142,6 @@ inoremap inoremap kj " remove visual mode keybinding noremap Q -" command line in history mode -noremap : q:i -noremap / q/i -noremap ? q?i " search with very magic nnoremap / /\v nnoremap ? ?\v @@ -273,9 +269,10 @@ augroup END " pluggins " """""""""""" -" ctrlp {{{ " directory to ignore when searching in file tree set wildignore=*/doc/*,*/tmp/*,*.o,*.so,*.a,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/*,*.pyc + +" ctrlp {{{ " ctrlp ignore all stuff in the .gitignore let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] let g:ctrlp_working_path_mode = 'rw' @@ -284,6 +281,11 @@ let g:ctrlp_mruf_case_sensitive = 0 nnoremap p :CtrlPTag " }}} +" fzf.vim {{{ +nnoremap :Files +nnoremap p :Tags +" }}} + " quick-scope {{{ " let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] " }}} @@ -295,11 +297,6 @@ nnoremap p :CtrlPTag " autocmd Filetype man unmap q: hmmmm?? " }}} -" ctrlp-funky {{{ -" let g:ctrlp_funky_syntax_highlight = 1 -" nnoremap :CtrlPFunky -" }}} - " eazy-align {{{ xmap ga (EasyAlign) nmap ga (EasyAlign) -- cgit