Last active
November 5, 2019 18:56
-
-
Save paulodiovani/7f9b57c7a7a53be9e55772cbb6e9e51d to your computer and use it in GitHub Desktop.
Vim 8 as Git Submodules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make the pack folder a git repository | |
cd ~/.vim/pack | |
git init | |
# add as many plugins as you want in the desired | |
# package directories | |
# for example, lets add NERDtree and its git plugin | |
# as autoloaded in plugins/ directory | |
git submodule add https://github.com/scrooloose/nerdtree plugins/start/nerdtree | |
git submodule add https://github.com/Xuyuanp/nerdtree-git-plugin plugins/start/nerdtree-git-plugin | |
# lets also add the one color scheme in the colors/ directory | |
git submodule add https://github.com/rakr/vim-one.git colors/start/one | |
# and optinaly, we want the elixir syntax and compiler tools under syntax/ | |
git submodule add https://github.com/elixir-lang/vim-elixir syntax/opt/elixir | |
# start vim and configure the plugins as desired :) | |
cd - | |
vim ~/.vimrc | |
# when need to update, | |
# it is just a matter of updating submodules | |
git submodule update --remote --merge | |
git commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment