Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make it easy to install for pathogen users #89

Merged
merged 3 commits into from

2 participants

@nixon

No description provided.

nixon added some commits
@nixon nixon remove the copy command from the vim and textmate targets
`vim/ftplugin/html/sparkup.py` and
`TextMate/Sparkup.tmbundle/Support/sparkup.py` are now stored in the
repo as symlinks to the toplevel `sparkup.py` and thus cause `make vim`
and `make textmate` to fail when trying to copy it.
6eed464
@nixon nixon create toplevel symlinks for ftplugin and doc
tpope's vim-pathogen expects to find the ftplugin directory at the top
level.  use `make vim-pathogen` to generate symbolic links to the
ftplugin and doc directories.
68f1c7f
@nixon nixon dont recreate sparkup.txt unless out-of-date 9d1abd3
@faceleg faceleg merged commit 56e807c into rstacruz:master
@nixon nixon deleted the nixon:pathogen branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 20, 2013
  1. @nixon

    remove the copy command from the vim and textmate targets

    nixon authored
    `vim/ftplugin/html/sparkup.py` and
    `TextMate/Sparkup.tmbundle/Support/sparkup.py` are now stored in the
    repo as symlinks to the toplevel `sparkup.py` and thus cause `make vim`
    and `make textmate` to fail when trying to copy it.
  2. @nixon

    create toplevel symlinks for ftplugin and doc

    nixon authored
    tpope's vim-pathogen expects to find the ftplugin directory at the top
    level.  use `make vim-pathogen` to generate symbolic links to the
    ftplugin and doc directories.
  3. @nixon
This page is out of date. Refresh to see the latest.
Showing with 22 additions and 7 deletions.
  1. +4 −0 .gitignore
  2. +12 −7 Makefile
  3. +6 −0 vim/README.txt
View
4 .gitignore
@@ -9,6 +9,10 @@ distribution/
cscope.out
*~
+# symlinks created for pathogen
+/ftplugin
+/doc
+
# Distribution files
# */sparkup
# */sparkup.py
View
19 Makefile
@@ -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*/' $< > $@
View
6 vim/README.txt
@@ -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
-------------
Something went wrong with that request. Please try again.