Skip to content
Browse files

Fixed the vim plugin (sorry)

  • Loading branch information...
1 parent 64b5974 commit aef4b930986fb1bce011ab2aa81b6b0b82b1d071 @rstacruz rstacruz committed Dec 5, 2009
Showing with 7 additions and 4 deletions.
  1. +1 −1 README.txt
  2. +6 −3 ftplugin/html/sparkup.vim
View
2 README.txt
@@ -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.
View
9 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.
@@ -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
@@ -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

0 comments on commit aef4b93

Please sign in to comment.
Something went wrong with that request. Please try again.