Skip to content

Commit

Permalink
Fixed the vim plugin (sorry)
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Dec 5, 2009
1 parent 8392bd2 commit 4f01dbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vim/README.txt
Expand Up @@ -11,7 +11,7 @@ Configuration

g:sparkup (Default: 'sparkup') -
Location of the sparkup executable. You shouldn't need to change this
setting if you used either of the install options above.
setting if you used the install option above.

g:sparkupArgs (Default: '--no-last-newline') -
Additional args passed to sparkup.
Expand Down
9 changes: 6 additions & 3 deletions vim/ftplugin/html/sparkup.vim
@@ -1,12 +1,13 @@
" Sparkup
" Installation:
" Copy the contents of vim/ftplugin/ to your ~/.vim/ftplugin directory.
" $ mkdir -p ~/.vim/ftplugin && cp -R vim/ftplugin ~/.vim/ftplugin/
"
" $ cp -R vim/ftplugin ~/.vim/ftplugin/
"
" Configuration:
" g:sparkup (Default: 'sparkup') -
" Location of the sparkup executable. You shouldn't need to change this
" setting if you used either of the install options above.
" setting if you used the install option above.
"
" g:sparkupArgs (Default: '--no-last-newline') -
" Additional args passed to sparkup.
Expand All @@ -17,6 +18,8 @@
" g:sparkupNextMapping (Default: '<c-n>') -
" Mapping used to jump to the next empty tag/attribute.

set rtp+=~/.vim/ftplugin/html

if !exists('g:sparkupExecuteMapping')
let g:sparkupExecuteMapping = '<c-e>'
endif
Expand All @@ -42,7 +45,7 @@ function! s:Sparkup()
" sparkup.vim in the runtimepath.
if !executable(s:sparkup)
let paths = substitute(escape(&runtimepath, ' '), '\(,\|$\)', '/**\1', 'g')
let s:sparkup = fnamemodify(findfile('sparkup.vim', paths), ':p:h:h:h:h') . '/sparkup'
let s:sparkup = findfile('sparkup.py', paths)

if !filereadable(s:sparkup)
echohl WarningMsg
Expand Down

0 comments on commit 4f01dbe

Please sign in to comment.