vmware-archive / salt-vim

Vim files for editing Salt files
Other
249 stars 72 forks source link

nicer install / update resistant: #42

Open Reiner030 opened 8 years ago

Reiner030 commented 8 years ago

It would be a little more useful if e.g. after:

cd ~/.vim/
git clone https://github.com/saltstack/salt-vim.git

symlinks are created for config files instead of copies:

cd salt-vim
ls */* | xargs -I{} ln -s ../salt-vim/{} ../{}

Or manual way:

ln -s ../salt-vim/ftdetect/sls.vim ~/.vim/ftdetect/sls.vim
ln -s ../salt-vim/ftplugin/sls.vim ~/.vim/ftplugin/sls.vim
ln -s ../salt-vim/syntax/sls.vim ~/.vim/syntax/sls.vim

Bests

basepi commented 8 years ago

The best way, IMO, is to use pathogen to manage your plugins so you don't have to copy the files. You just clone the repo into your bundle directory and vim will find the files there.

That said, if you wanted to add some manual instructions for linking into the readme, we'd accept such a pull request.