Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #89 from nixon/pathogen

Make it easy to install for pathogen users
  • Loading branch information...
commit 56e807c81e20efae6120d42501e3f30a74b83f92 2 parents 096734f + 9d1abd3
Michael Robinson faceleg authored
Showing with 22 additions and 7 deletions.
  1. +4 −0 .gitignore
  2. +12 −7 Makefile
  3. +6 −0 vim/README.txt
4 .gitignore
View
@@ -9,6 +9,10 @@ distribution/
cscope.out
*~
+# symlinks created for pathogen
+/ftplugin
+/doc
+
# Distribution files
# */sparkup
# */sparkup.py
19 Makefile
View
@@ -32,12 +32,17 @@ generic:
#cp ${README} generic/sparkup-readme.txt
textmate:
- mkdir -p TextMate/Sparkup.tmbundle/Support
- cp ${SPARKUP_PY} TextMate/Sparkup.tmbundle/Support/sparkup.py
#cp ${README} TextMate/sparkup-readme.txt
-vim:
- mkdir -p vim/ftplugin/html vim/doc
- cp ${SPARKUP_PY} vim/ftplugin/html/sparkup.py
- # Add asteriks to title, so it gets matched by `:helptags`
- sed '1s/.*/*\0*/' ${README} > vim/doc/sparkup.txt
+vim: vim/doc/sparkup.txt
+
+# create pathogen friendly structure
+vim-pathogen: vim ftplugin doc
+
+ftplugin doc:
+ ln -s vim/$@
+
+# Add asterisks to title, so it gets matched by `:helptags`
+vim/doc/sparkup.txt: ${README}
+ mkdir -p $(@D)
+ sed '1s/.*/*\0*/' $< > $@
6 vim/README.txt
View
@@ -11,6 +11,12 @@ Installation
(Assuming your current dir is sparkup/vim/)
$ cp ../sparkup.py ~/.vim/
+Or use tpope's vim-pathogen:
+
+ cd ~/.vim/bundle ; git clone
+ cd sparkup
+ make vim-pathogen
+
Configuration
-------------
Please sign in to comment.
Something went wrong with that request. Please try again.