From 484e2924e56809cdd46907078e5d64fa5e355253 Mon Sep 17 00:00:00 2001 From: gryf Date: Tue, 13 Dec 2016 14:26:08 +0100 Subject: [PATCH] Added check for command existsing instead of setting buffer variable --- ftplugin/python/pylint_fn.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ftplugin/python/pylint_fn.vim b/ftplugin/python/pylint_fn.vim index 808edfd..69d4e2a 100644 --- a/ftplugin/python/pylint_fn.vim +++ b/ftplugin/python/pylint_fn.vim @@ -46,10 +46,8 @@ let s:plugin_path = expand(':p:h', 1) -if exists("b:did_pylint_plugin") +if exists(":Pep8") finish " only load once -else - let b:did_pylint_plugin = 1 endif function! s:SetPython(msg)