Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make JekyllBuild work outside jekyll_path #7

Merged
merged 1 commit into from
Jan 30, 2013

Conversation

sjktje
Copy link
Contributor

@sjktje sjktje commented Jan 29, 2013

JekyllBuild will now change directory to jekyll_path before building. When
done building, it will switch back to whatever directory vim 'was in' prior
to calling JekyllBuild.

I first tried making JekyllBuild work without having to change directories:

function JekyllBuild(args)
    exe "!jekyll " . g:jekyll_path . " " . g:jekyll_path . "/_site"
endfunction

This worked fine, but by doing this I lost the ability to specify command line
switches for jekyll. Jekyll does not seem to like having switches passed to it
when also being passed paths like this. I therefore decided to stick with the
directory change approach (see attached code.)

PS. I am no vim script expert.

JekyllBuild will now change directory to jekyll_path before building. When
done building, it will switch back to whatever directory vim 'was in' prior to
calling JekyllBuild.
csexton added a commit that referenced this pull request Jan 30, 2013
Make JekyllBuild work outside jekyll_path
@csexton csexton merged commit 6403cda into csexton:master Jan 30, 2013
@sjktje sjktje deleted the fix-jekyllbuild branch January 30, 2013 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants