mirror of
https://github.com/gryf/pep8-vim.git
synced 2025-12-19 04:30:18 +01:00
Added check for command existsing instead of setting buffer variable
This commit is contained in:
@@ -48,10 +48,8 @@
|
|||||||
|
|
||||||
let s:plugin_path = expand('<sfile>:p:h', 1)
|
let s:plugin_path = expand('<sfile>:p:h', 1)
|
||||||
|
|
||||||
if exists("b:did_pep8_plugin")
|
if exists(":Pep8")
|
||||||
finish " only load once
|
finish " only load once
|
||||||
else
|
|
||||||
let b:did_pep8_plugin = 1
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists("g:pep8_exclude")
|
if !exists("g:pep8_exclude")
|
||||||
@@ -82,7 +80,6 @@ function! s:LoadPep8()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
call s:LoadPep8()
|
call s:LoadPep8()
|
||||||
|
|
||||||
function s:Pep8()
|
function s:Pep8()
|
||||||
|
|||||||
Reference in New Issue
Block a user