1
0
mirror of https://github.com/gryf/pep8-vim.git synced 2025-12-18 20:20:18 +01:00

Added check for command existsing instead of setting buffer variable

This commit is contained in:
2016-12-13 14:25:22 +01:00
parent 5c254f727d
commit 02244d1734

View File

@@ -48,10 +48,8 @@
let s:plugin_path = expand('<sfile>:p:h', 1)
if exists("b:did_pep8_plugin")
if exists(":Pep8")
finish " only load once
else
let b:did_pep8_plugin = 1
endif
if !exists("g:pep8_exclude")
@@ -82,7 +80,6 @@ function! s:LoadPep8()
endif
endfunction
call s:LoadPep8()
function s:Pep8()