From 0b3d914296f4b0c74abc6fc55128ea4e45b217eb Mon Sep 17 00:00:00 2001 From: Shyam Habarakada Date: Wed, 30 May 2018 16:25:43 -0700 Subject: [PATCH 1/2] Make a note for users of .dotfiles repos When setting up a [dotfiles](https://dotfiles.github.io/) repo, it is typical for the entire contents of the `.vim` directory to be added into the `.dotfiles` git repo. Having the pathogen plugins clones as nested repositories is problematic in this case and we need to instead set them up as git submodules. --- README.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.markdown b/README.markdown index 3a2e6c84..4b998a0d 100644 --- a/README.markdown +++ b/README.markdown @@ -33,6 +33,10 @@ Observe: cd ~/.vim/bundle && \ git clone https://github.com/tpope/vim-sensible.git + + # IMPORTANT: For users setting up a .dotfiles repository you must + # add the plugins as git submodules instead of cloning. Like, + git submodule add https://github.com/tpope/vim-sensible.git Now [sensible.vim](https://github.com/tpope/vim-sensible) is installed. If you really want to get crazy, you could set it up as a submodule in From c8ac82a591fa5de6839aa53ccb5f31dd21307112 Mon Sep 17 00:00:00 2001 From: Shyam Habarakada Date: Wed, 30 May 2018 16:29:31 -0700 Subject: [PATCH 2/2] Make this a note for dot files users. I lost a few hairs trying to make this work and realized the issue was that I had just cloned the plugins. Having this called out a bit clearer would have certainly helped. Hoping this will benefit someone else. --- README.markdown | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.markdown b/README.markdown index 4b998a0d..b86a4a2e 100644 --- a/README.markdown +++ b/README.markdown @@ -34,14 +34,10 @@ Observe: cd ~/.vim/bundle && \ git clone https://github.com/tpope/vim-sensible.git - # IMPORTANT: For users setting up a .dotfiles repository you must - # add the plugins as git submodules instead of cloning. Like, - git submodule add https://github.com/tpope/vim-sensible.git - Now [sensible.vim](https://github.com/tpope/vim-sensible) is installed. -If you really want to get crazy, you could set it up as a submodule in -whatever repository you keep your dot files in. I don't like to get -crazy. + +`NOTE:` If you are using a dot files repo, you should set it up as a submodule in +whatever repository you keep your dot files in. If you don't like the directory name `bundle`, you can pass a runtime relative glob as an argument: