mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 19:40:29 +01:00
Added pmx specific stuff
This commit is contained in:
@@ -50,6 +50,24 @@ else
|
||||
let b:did_pylint_plugin = 1
|
||||
endif
|
||||
|
||||
if !exists('*s:CheckPylint')
|
||||
function s:CheckPylint()
|
||||
python << EOF
|
||||
try:
|
||||
import vim
|
||||
from pylint import lint
|
||||
from pylint.reporters.text import TextReporter
|
||||
except ImportError:
|
||||
vim.command("return 0")
|
||||
vim.command("return 1")
|
||||
EOF
|
||||
endfunction
|
||||
endif
|
||||
|
||||
if s:CheckPylint() == 0
|
||||
finish
|
||||
endif
|
||||
|
||||
if !exists("b:did_pylint_init")
|
||||
let b:did_pylint_init = 0
|
||||
|
||||
@@ -59,16 +77,9 @@ if !exists("b:did_pylint_init")
|
||||
endif
|
||||
|
||||
python << EOF
|
||||
import vim
|
||||
import sys
|
||||
from StringIO import StringIO
|
||||
|
||||
try:
|
||||
from pylint import lint
|
||||
from pylint.reporters.text import TextReporter
|
||||
except ImportError:
|
||||
raise AssertionError('Pylint is required for this plugin')
|
||||
|
||||
class VImPylint(object):
|
||||
|
||||
sys_stderr = sys.stderr
|
||||
|
||||
Reference in New Issue
Block a user