From 5454deef3a0b00f55201135ce5a56112eb410ace Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 6 Jan 2021 10:42:03 +0100 Subject: Added tag search/generate in vim --- .gitignore | 1 + .pluggins.vim | 1 + .vimrc | 9 +++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/.pluggins.vim b/.pluggins.vim index ed675c5..6a58b7e 100644 --- a/.pluggins.vim +++ b/.pluggins.vim @@ -12,6 +12,7 @@ call plug#begin() Plug 'tpope/vim-fugitive' " git wrapper Plug 'junegunn/vim-easy-align' " align " Plug 'easymotion/vim-easymotion' " TODO very intresting + Plug 'ludovicchabant/vim-gutentags' " generate tags in project root " markdown preview in browser " Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} diff --git a/.vimrc b/.vimrc index a3a61a0..bb747ff 100644 --- a/.vimrc +++ b/.vimrc @@ -263,11 +263,13 @@ autocmd FileType lisp,html,css setlocal shiftwidth=2 " ctrlp {{{ " directory to ignore when searching in file tree -set wildignore=*/tmp/*,*.o,*.so,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/*,*.pyc +set wildignore=*/doc/*,*/tmp/*,*.o,*.so,*.a,*.swp,*.zip,*/node_modules/*,*/vendor/*,.bundle/*,bin/*,.git/*,*.pyc " 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' let g:ctrlp_mruf_case_sensitive = 0 + +nnoremap p :CtrlPTag " }}} " quick-scope {{{ @@ -294,4 +296,7 @@ nmap ga (EasyAlign) vnoremap c y:call system("xclip -selection clipboard", getreg("\"")) nnoremap v :call setreg("\"", system("xclip -selection clipboard -o"))p -let g:c_formatter_42_format_on_save=0 +let g:c_formatter_42_format_on_save = 0 + +let g:gutentags_ctags_exclude = ['doc/*', 'Makefile'] +" let g:gutentags_ctags_exclude_wildignore = 1 -- cgit