Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Exit gracefully in case python is not available. #2

Merged
merged 1 commit into from

2 participants

@koepsell

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).

@koepsell koepsell 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).
817a29e
@mitechie mitechie merged commit 365e882 into mitechie:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 29, 2012
  1. @koepsell

    Exit gracefully in case python is not available.

    koepsell authored
    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).
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 ftplugin/python/pyflakes.vim
View
4 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
Something went wrong with that request. Please try again.