mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 20:10:27 +01:00
Moja prawie współczesna konfiguracja. Dużo rzeczy :)
This commit is contained in:
28
ftplugin/python/eclim_py.vim
Normal file
28
ftplugin/python/eclim_py.vim
Normal file
@@ -0,0 +1,28 @@
|
||||
" ftplugin for python.
|
||||
" See: eclim_py plugin in plugins dir
|
||||
" Global Variables {{{
|
||||
|
||||
if !exists("g:EclimPythonValidate")
|
||||
let g:EclimPythonValidate = 1
|
||||
endif
|
||||
|
||||
" }}}
|
||||
|
||||
" Autocmds {{{
|
||||
|
||||
if g:EclimPythonValidate
|
||||
augroup eclim_python_validate
|
||||
autocmd! BufWritePost <buffer>
|
||||
autocmd BufWritePost <buffer> call Validate(1)
|
||||
augroup END
|
||||
endif
|
||||
|
||||
" }}}
|
||||
|
||||
if !exists(":Validate")
|
||||
command -nargs=0 -buffer Validate :call Validate(0)
|
||||
endif
|
||||
if !exists(":PyLint")
|
||||
command -nargs=0 -buffer PyLint :call PyLint()
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user