From 38b6979c64d8995739d2a42eb6322206b2180123 Mon Sep 17 00:00:00 2001 From: lhark Date: Thu, 22 Nov 2018 15:09:32 -0500 Subject: [PATCH] Replace easytags.vim (unmaintained) with gutentags --- ctags.d/youcompleteme.ctags | 1 + install.sh | 2 +- vimrc | 27 +++++++++++---------------- 3 files changed, 13 insertions(+), 17 deletions(-) create mode 100644 ctags.d/youcompleteme.ctags diff --git a/ctags.d/youcompleteme.ctags b/ctags.d/youcompleteme.ctags new file mode 100644 index 0000000..bd1c3e9 --- /dev/null +++ b/ctags.d/youcompleteme.ctags @@ -0,0 +1 @@ +--fields=+l diff --git a/install.sh b/install.sh index 43ead74..49c67a4 100755 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ SCRIPTPATH=$(dirname "$SCRIPT") HOST=$(hostname) # List of the config files to install -FILES="vimrc zshrc gitconfig vim gitignore_global git_user" +FILES="vimrc zshrc gitconfig vim gitignore_global git_user ctags.d" if [ ! -e "$HOME/.git_user" ]; then cp "$SCRIPTPATH/git_user.def" "$SCRIPTPATH/git_user" diff --git a/vimrc b/vimrc index d72cdc2..2a6fa81 100644 --- a/vimrc +++ b/vimrc @@ -13,6 +13,7 @@ "| AutoComplPop | https://github.com/vim-scripts/AutoComplPop |" "| DelimitMate | https://github.com/Raimondi/delimitMate |" "| DetectIndent | https://github.com/roryokane/detectindent |" +"| Gutentags | https://github.com/ludovicchabant/vim-gutentags |" "| Multiple-Cursors | https://github.com/terryma/vim-multiple-cursors |" "| Python-Mode | https://github.com/klen/python-mode |" "| Surround | https://github.com/tpope/vim-surround |" @@ -21,6 +22,7 @@ "| Vim-GLSL | https://github.com/tikhomirov/vim-glsl |" "| Vim-Gnupg | https://github.com/jamessan/vim-gnupg |" "| Vundle | https://github.com/gmarik/Vundle.vim.git |" +"| YouCompleteMe | https://github.com/Valloric/YouCompleteMe |" "+------------------+-------------------------------------------------+" "[Colorschemes list]"""""""""""""""""""""""""""""""""""""""""""""""""""" "+------------------+-------------------------------------------------+" @@ -46,15 +48,6 @@ if has("unix") || has("mac") Plugin 'gmarik/Vundle.vim' map :VundleInstall map :VundleUpdate - if has("python") - Plugin 'klen/python-mode' - let g:pymode_rope_lookup_project = 0 - let g:pymode_rope = 0 - Plugin 'davidhalter/jedi-vim' - endif - if has("ruby") - Plugin 'terryma/vim-multiple-cursors' - endif Plugin 'mbbill/undotree' map :UndotreeToggle Plugin 'vim-scripts/LaTeX-Box' @@ -68,8 +61,11 @@ if has("unix") || has("mac") let g:ycm_show_diagnostics_ui = 0 let g:ycm_collect_identifiers_from_tags_files=1 let g:ycm_seed_identifiers_with_syntax=1 + let g:ycm_show_diagnostics_ui = 0 + let g:ycm_use_ultisnips_completer = 0 else Plugin 'AutoComplPop' + Plugin 'davidhalter/jedi-vim' endif Plugin 'w0rp/ale' let g:ale_linters = { @@ -104,12 +100,7 @@ if has("unix") || has("mac") \ }, \} if executable('ctags') - "Needed for vim-easytags" - Plugin 'xolox/vim-misc' - Plugin 'xolox/vim-easytags' - let g:easytags_async=1 - "Needed for YouCompleteMe" - let g:easytags_opts=['--fields=+l'] + Plugin 'ludovicchabant/vim-gutentags' endif Plugin 'godlygeek/tabular' Plugin 'beyondmarc/opengl.vim' @@ -119,6 +110,7 @@ if has("unix") || has("mac") Plugin 'mzlogin/vim-smali' Plugin 'jamessan/vim-gnupg' Plugin 'petRUShka/vim-opencl' + Plugin 'hynek/vim-python-pep8-indent' Plugin 'tpope/vim-surround' Plugin 'captbaritone/better-indent-support-for-php-with-html' "[Autodetect indent style of a file]" @@ -126,7 +118,8 @@ if has("unix") || has("mac") let g:detectindent_preferred_indent=4 let g:detectindent_autodetect=1 "[Solarized theme]" - Plugin 'altercation/vim-colors-solarized' + "Plugin 'ericbn/vim-solarized' + Plugin 'https://gitlab.federez.net/lhark/vim-solarized.git' call vundle#end() catch endtry @@ -239,6 +232,8 @@ set mousehide set background=dark set ttyfast set tabline="" +"[Kitty doesn't support background color erase]" +let &t_ut='' " set cmdheight=1 : default set showtabline=0 set colorcolumn=80