]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/ftplugin/python/lint.vim
Vim scripts refactoring
[dotfiles.git] / vim / .vim / ftplugin / python / lint.vim
diff --git a/vim/.vim/ftplugin/python/lint.vim b/vim/.vim/ftplugin/python/lint.vim
new file mode 100644 (file)
index 0000000..a7d696a
--- /dev/null
@@ -0,0 +1,6 @@
+if exists("*python#lint#start") | finish | endif
+let b:lint_status_func=function("python#lint#status")
+sign define LN text=LN texthl=Error
+map <F6> :unlet! g:pylint_disable<CR>:call python#lint#start()<CR>
+map \e[32~ :redraw!<CR>:copen<CR>
+autocmd BufWritePost *.py call python#lint#start()