aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2020-01-22 09:26:15 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:29 +0100
commit5ff9164f0a89294cfa5da750b427e830b48e409f (patch)
treeb27cad3ff4ccea22ad354ddaf76dd6f74fcf6c87 /README.md
parent39c4dc1afaa330e0b84aadd4af2960f2dc01feb0 (diff)
downloaddotnvim-5ff9164f0a89294cfa5da750b427e830b48e409f.tar.gz
dotnvim-5ff9164f0a89294cfa5da750b427e830b48e409f.zip
Migrated to vim-plug
Diffstat (limited to 'README.md')
-rw-r--r--README.md42
1 files changed, 16 insertions, 26 deletions
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