Switch from Vundle to vim-plug

This commit is contained in:
Fabian Ising
2022-09-05 14:40:20 +02:00
parent 6e1373a67d
commit c80b8a7c71
3 changed files with 32 additions and 40 deletions

8
.gitmodules vendored
View File

@@ -5,11 +5,3 @@
[submodule "antigen"] [submodule "antigen"]
path = zsh/antigen path = zsh/antigen
url = https://github.com/zsh-users/antigen.git url = https://github.com/zsh-users/antigen.git
[submodule "bundle/Vundle.vim"]
path = vim/bundle/Vundle.vim
url = https://github.com/VundleVim/Vundle.vim.git
[submodule "nvim/bundle/Vundle.vim"]
path = nvim/bundle/Vundle.vim
url = https://github.com/VundleVim/Vundle.vim.git

View File

@@ -2,71 +2,72 @@ set nocompatible
filetype off filetype off
" Plugins " Plugins
set rtp+=~/.config/nvim/bundle/Vundle.vim let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
call vundle#begin("~/.config/nvim/bundle") if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
Plugin 'VundleVim/Vundle.vim' autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
" Powerline replacement " Powerline replacement
Plugin 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
" Tags " Tags
Plugin 'xolox/vim-misc' Plug 'xolox/vim-misc'
"Plugin 'ludovicchabant/vim-gutentags' "Plugin 'ludovicchabant/vim-gutentags'
Plugin 'majutsushi/tagbar' Plug 'majutsushi/tagbar'
" Templates " Templates
Plugin 'aperezdc/vim-template' Plug 'aperezdc/vim-template'
" Selection expand " Selection expand
Plugin 'terryma/vim-expand-region' Plug 'terryma/vim-expand-region'
Plugin 'kana/vim-textobj-user' Plug 'kana/vim-textobj-user'
Plugin 'kana/vim-textobj-line' Plug 'kana/vim-textobj-line'
Plugin 'kana/vim-submode' Plug 'kana/vim-submode'
" Better Pasting " Better Pasting
Plugin 'ConradIrwin/vim-bracketed-paste' Plug 'ConradIrwin/vim-bracketed-paste'
" Tmux navigation " Tmux navigation
Plugin 'christoomey/vim-tmux-navigator' Plug 'christoomey/vim-tmux-navigator'
" YouCompleteMe " YouCompleteMe
Plugin 'Valloric/YouCompleteMe' Plug 'Valloric/YouCompleteMe'
Plugin 'rdnetto/YCM-Generator' Plug 'rdnetto/YCM-Generator'
" Git " Git
Plugin 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
" Comments " Comments
Plugin 'scrooloose/nerdcommenter' Plug 'scrooloose/nerdcommenter'
" Surround " Surround
Plugin 'tpope/vim-surround' Plug 'tpope/vim-surround'
" Snippets " Snippets
" Track the engine. " Track the engine.
Plugin 'SirVer/ultisnips' Plug 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them: " Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets' Plug 'honza/vim-snippets'
Plugin 'ervandew/supertab' Plug 'ervandew/supertab'
"Buftabeline "Buftabeline
"Plugin 'ap/vim-buftabline' "Plug 'ap/vim-buftabline'
" Highlight matching xml tags " Highlight matching xml tags
Plugin 'Valloric/MatchTagAlways' Plug 'Valloric/MatchTagAlways'
"Javascript "Javascript
Plugin 'pangloss/vim-javascript' Plug 'pangloss/vim-javascript'
" Tex " Tex
Plugin 'lervag/vimtex' Plug 'lervag/vimtex'
"Go "Go
Plugin 'fatih/vim-go' Plug 'fatih/vim-go'
call vundle#end() call plug#end()
filetype plugin indent on filetype plugin indent on
set cinkeys-=0# set cinkeys-=0#
@@ -191,7 +192,7 @@ nmap <C-]> <C-w><C-]><C-w>T
let g:ycm_collect_identifiers_from_tags_files = 1 " Read from tag files let g:ycm_collect_identifiers_from_tags_files = 1 " Read from tag files
let g:ycm_global_ycm_extra_conf = '~/.config/nvim/.ycm_extra_conf.py' " Standard conf let g:ycm_global_ycm_extra_conf = '~/.config/nvim/.ycm_extra_conf.py' " Standard conf
let g:ycm_enable_diagnostic_signs = 0 " Do not show semantic error bar let g:ycm_enable_diagnostic_signs = 0 " Do not show semantic error bar
let g:ycm_server_python_interpreter = 'python' let g:ycm_server_python_interpreter = 'python3'
let g:ycm_key_list_select_completion = ['<C-j>', '<C-n>', '<Down>'] let g:ycm_key_list_select_completion = ['<C-j>', '<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-k>', '<C-p>', '<Up>'] let g:ycm_key_list_previous_completion = ['<C-k>', '<C-p>', '<Up>']