Open StFS opened 1 year ago
You can do this, but I suggest an alternative approach. Here are four different ways I think you can achieve your goal of loading Vim plugins (1 is most recommended, 4 is least recommended).
runtime
function in your vimrc to load Pathogen, no symlink necessary. This is what I used to do in my dotfiles.ln -s ...
and check in that file into Git.link:
steps (so they are ordered with respect to each other), and for the second one, set the link target to ~/.vim/autoload/pathogen.vim
(assuming the autoload directory exists already; if not, you will need to create:
it using Dotbot). You will also need to add the file to your .gitignore
.
I have a directory that I mange with dotbot:
I also have a submodule in my dotfiles repo:
Inside this submodule, there is a file (
pathogen/autoload/pathogen.vim
) that I need to place in~/.vim/autoload/pathogen.vim
so that vim autoloads that plugin.I've tried doing it like this (trying to symlink the file from the submodule into the dotfiles vim directory so that the
~/.vim/
symlink will have it included):But this is not working.
The error I'm getting is:
Is there some way to make dotfiles create a symlink inside the dotfiles directory itself?
I hope I'm making myself understood here... but probably not... sorry about that 😞