vim/.vim/autoload/python/importcompl.vim | 2 +- vim/.vim/ftplugin/python/importcompl.vim | 1 + vim/.vim/ftplugin/python/lint.vim | 2 +- diff --git a/vim/.vim/autoload/python/importcompl.vim b/vim/.vim/autoload/python/importcompl.vim index 017d91a835706740d392f83ce308e6de1134de20..cc26c792bb8726b6ce93d3bcc6fc592d337e597e 100644 --- a/vim/.vim/autoload/python/importcompl.vim +++ b/vim/.vim/autoload/python/importcompl.vim @@ -9,7 +9,7 @@ " press in insert mode. Completion menu will show you suggestions " of all import lines from your code containing Baz import. " " If you have Pylint or Pyflakes output in quickfix window, containing -" unfedined variables errors, then you can you :call AllImportCompl() +" unfedined variables errors, then you can you :call python#importcompl#all() " function. It will go through the quickfix list and find all possible " imports, sort them and insert under current cursor position. " diff --git a/vim/.vim/ftplugin/python/importcompl.vim b/vim/.vim/ftplugin/python/importcompl.vim index d5678750eb6db646effc86c0fd46b036560874e0..5ae47ba4c4a1d1aa88087cea5354fd99e3fb88eb 100644 --- a/vim/.vim/ftplugin/python/importcompl.vim +++ b/vim/.vim/ftplugin/python/importcompl.vim @@ -1,2 +1,3 @@ if exists("*python#importcompl#do") | finish | endif inoremap =python#importcompl#do() +cnoremap call python#importcompl#all() diff --git a/vim/.vim/ftplugin/python/lint.vim b/vim/.vim/ftplugin/python/lint.vim index a7d696a10f7a7340d646c6fc9eaf8cee9bccee48..7f92218d5f00eb20e019d72c7b74e5f1450bdf48 100644 --- a/vim/.vim/ftplugin/python/lint.vim +++ b/vim/.vim/ftplugin/python/lint.vim @@ -2,5 +2,5 @@ if exists("*python#lint#start") | finish | endif let b:lint_status_func=function("python#lint#status") sign define LN text=LN texthl=Error map :unlet! g:pylint_disable:call python#lint#start() -map [32~ :redraw!:copen +map [17;2~ :redraw!:copen autocmd BufWritePost *.py call python#lint#start()