My vim configuration & plugins using git module.
Assume that you have had vim
and git
already.
Next step is clone this repo with all its submodules:
# HTTPS
git clone --recursive https://github.com/ndaidong/vim.git ~/.vim
# for your fork
git clone --recursive git@github.com:YOUR_GITHUB_USERNAME/vim.git ~/.vim
# for me
git clone --recursive git@github.com:ndaidong/vim.git ~/.vim
That's it. Everything was done.
To update these plugins, use the following commands:
# Git 1.8.2 and above
git submodule update --recursive --remote
# Git 1.7.3 and above
git submodule update --recursive
# Alternatively
git pull --recurse-submodules
Python developers need to install flake8
globally or within isolated environment.
Recommend to use pipx:
pipx install flake8
JavaScript/TypeScript developers can use eslint
from global or project scope.
Recommend to use pnpm:
pnpm i -g eslint
- NERDTree: to get file explorer with sidebar and tabs
- NERDTree Tabs: to keep sidebar consistent, independent from tabs
- indentLine: to display the indention levels
- nerdcommenter: to comment line or block of selected code
- lightline.vim: to make statusline
- vim-gitbranch: to get branch name
- ALE: to enable live linting
- lightline-ale: to bring messages from ALE to statusline
- v-vim: Support for V syntax highlighting in Vim
For example vim-wanted
can be added as below:
cd ~/.vim
git submodule add https://github.com/vim-wanted/vim-wanted.git pack/plugins/start/vim-wanted
git commit
Here we remove vim-unwanted
:
cd ~/.vim
git rm -f pack/plugins/start/vim-unwanted
rm -rf .git/modules/pack/plugins/start/vim-unwanted
git commit -m "Remove vim-unwanted"
git push
- Di cư từ Sublime Text sang VIM
- Làm quen VIM trong 5 phút
- 3 VIM plugins giúp tôi thấy như ở nhà
- Vim: So long Pathogen, hello native package loading
- Vim Configuration From Scratch in 2016
- A Simpler Vim Statusline
- Switch from vim-airline to lightline
- A better NerdTree setup
The MIT License (MIT)