From 5ff9164f0a89294cfa5da750b427e830b48e409f Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 22 Jan 2020 09:26:15 +0000 Subject: Migrated to vim-plug --- README.md | 42 ++++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 26 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ebcfa28..2003352 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,7 @@ # My ~/.vim -I borrowed from different sources, one of them being this: - -https://gist.github.com/manasthakur/d4dc9a610884c60d944a4dd97f0b3560 - -Few differences: - - - My repo is in `~/.vim/` - - I use pathogen to manage the plugins (should move to Vim 8's packages, but I - still have few Vim 7.x boxes) - - Includes gvim configuration (outdated, I don't use it anymore) +Managed by [vim-plug](https://github.com/junegunn/vim-plug) and compatible with +Neovim. For further information on installed plugins: @@ -17,7 +9,7 @@ For further information on installed plugins: ## Using it in a new location -You shouldn't have a `~/.vimrc` or `~/.vim` directory. +My repo is in `~/.vim/`! You shouldn't have a `~/.vimrc` or `~/.vim` directory. cd && git clone --recursive https://github.com/reidrac/dotvim.git .vim @@ -28,29 +20,27 @@ If you're not using vim 8; create a `.vimrc` with: This can be also be used to customise your local vim configuration without having uncommitted changes in your repository. -## Adding plugins +In case of Neovim, you can link the provided `init.vim` into `~/.config/nvim/init.vim`. - git submodule add https://github.com/user/foo.git bundle/foo - git commit -m "Added foo plugin" +Then it is recommended you run: -## Updating plugins + :PlugUpgrade + :PlugInstall - git submodule foreach git pull origin master - git commit -am "Updated plugins" +The *upgrade* part is only needed if the plugin manager is not up to date. Then +you can commit and push the updated version. -### Updating you .vim on a different machine +## Adding plugins - git pull +Add a new `Plug` entry in `~/.vim/vimrc`. - # Only if a plugin was added - git submodule init +## Updating plugins - git submodule update + :PlugUpdate ## Removing plugins - git submodule deinit -f bundle/foo - git rm -r bundle/foo - git commit -am "Removed plugin" - rm -rf .git/modules/bundle/foo +Remove the `Plug` line and run: + + :PlugClean -- cgit v1.2.3