Skip to content

ndaidong/vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim

My vim configuration & plugins using git module.

Usage

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.

Up to date

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

Linters

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

Plugins

Add plugin

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

Remove plugin

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

Refs

Learn more?

Screenshots

VIM in my desktop - JavaScript VIM in my desktop - Python VIM in my desktop - Golang

License

The MIT License (MIT)