Permalink
Browse files

Exit gracefully in case python is not available.

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...
1 parent ca28f1c commit 817a29e14abe72a3dc91dbb6aced4127908e6488 @koepsell koepsell committed Jan 29, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 ftplugin/python/pyflakes.vim
@@ -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

0 comments on commit 817a29e

Please sign in to comment.