Skip to content

Commit

Permalink
Exit gracefully in case python is not available.
Browse files Browse the repository at this point in the history
This small patch lets the script exit quietly when python support is not
available rather then throwing multiple errors. This makes it easier to
share the vim configuration between different vim installations (eg.
macvim and the builtin /usr/bin/vim without python support on Mac OSX).
  • Loading branch information
koepsell committed Jan 29, 2012
1 parent ca28f1c commit 817a29e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ftplugin/python/pyflakes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"
" Maintainer: Kevin Watters <kevin.watters@gmail.com>
" Version: 0.1
if !has('python')
" exit if python is not available.
finish
endif

if exists("b:did_pyflakes_plugin")
finish " only load once
Expand Down

0 comments on commit 817a29e

Please sign in to comment.