Replace Vundle by vim-plug

This commit is contained in:
Rodolphe Bréard 2023-06-04 14:01:50 +02:00
parent cc79c734fe
commit 20344237fd
5 changed files with 15 additions and 41 deletions

3
.gitignore vendored
View file

@ -9,8 +9,7 @@ __pycache__/
*$py.class *$py.class
# Vim # Vim
.vim/bundle/* .vim/plugged/*
!.vim/bundle/Vundle.vim
.vim/.netrwhist .vim/.netrwhist
*.swp *.swp

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule ".vim/bundle/Vundle.vim"]
path = .vim/bundle/Vundle.vim
url = https://github.com/VundleVim/Vundle.vim.git

@ -1 +0,0 @@
Subproject commit b255382d6242d7ea3877bf059d2934125e0c4d95

28
.vimrc
View file

@ -1,25 +1,19 @@
set nocompatible set nocompatible
filetype off filetype off
" Install Vundle:
" $ git clone https://github.com/VundleVim/Vundle.vim.git \
" ~/.vim/bundle/Vundle.vim
"
" Install all plugins: " Install all plugins:
" $ vim +PluginInstall +qall " $ vim +PlugInstall
set rtp+=~/.vim/bundle/Vundle.vim " Set the runtime path to include Vundle and initialize. call plug#begin('~/.vim/plugged')
call vundle#begin() Plug 'bling/vim-airline' " Lean & mean status/tabline for vim that's light as air.
Plugin 'VundleVim/Vundle.vim' " Let Vundle manage Vundle, required. Plug 'antoyo/vim-licenses' " Vim Plugin that Provides Commands to Add Licenses at the Top of the Buffer.
Plugin 'bling/vim-airline' " Lean & mean status/tabline for vim that's light as air. Plug 'breard-r/vim-dnsserial' " Another DNS-zone serial number updater.
Plugin 'antoyo/vim-licenses' " Vim Plugin that Provides Commands to Add Licenses at the Top of the Buffer. Plug 'sjl/badwolf' " A Vim color scheme.
Plugin 'breard-r/vim-dnsserial' " Another DNS-zone serial number updater. Plug 'rust-lang/rust.vim' " Vim configuration for Rust.
Plugin 'sjl/badwolf' " A Vim color scheme. Plug 'cespare/vim-toml' " Vim syntax for TOML.
Plugin 'rust-lang/rust.vim' " Vim configuration for Rust. Plug 'editorconfig/editorconfig-vim' " EditorConfig plugin
Plugin 'cespare/vim-toml' " Vim syntax for TOML. Plug 'Yggdroot/indentLine' " Display thin vertical lines at each indentation level
Plugin 'editorconfig/editorconfig-vim' " EditorConfig plugin call plug#end()
Plugin 'Yggdroot/indentLine' " Display thin vertical lines at each indentation level
call vundle#end()
syntax on " Enable syntax highlighting. syntax on " Enable syntax highlighting.

View file

@ -30,7 +30,7 @@ pacman -S dosfstools mtools
``` sh ``` sh
# Base utils # Base utils
yay -S liquidprompt yay -S liquidprompt vim-plug
# Printer # Printer
yay -S brother-dcp1610w brscan-skey brscan4 yay -S brother-dcp1610w brscan-skey brscan4
# Graphical software # Graphical software
@ -39,25 +39,10 @@ yay -S cardpeek
## vim ## vim
Plugins are managed by Vundle, which is a git submodule. After cloning the `dotfiles` repository, you have to initialize the submodule and install all plugins. Plugins are managed by `vim-plug`, which is installed from the AUR.
``` sh ``` sh
cd dotfiles/ vim +PlugInstall
git submodule init
git submodule update
vim +PluginInstall +qall
```
Plugins can be updated with `vim +PluginUpdate +qall`.
Updating the Vundle submodule:
``` sh
cd .vim/bundle/Vundle.vim
git checkout master
git pull
cd -
git commit -m 'Update Vundle'
``` ```