]> Sergey Matveev's repositories - dotfiles.git/commitdiff
<F3> python#importcompl#all() helper
authorSergey Matveev <stargrave@stargrave.org>
Fri, 12 Nov 2021 11:44:49 +0000 (14:44 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:13 +0000 (14:35 +0300)
vim/.vim/autoload/python/importcompl.vim
vim/.vim/ftplugin/python/importcompl.vim
vim/.vim/ftplugin/python/lint.vim

index 017d91a835706740d392f83ce308e6de1134de20..cc26c792bb8726b6ce93d3bcc6fc592d337e597e 100644 (file)
@@ -9,7 +9,7 @@
 " of all import lines from your code containing Baz import.
 "
 " If you have Pylint or Pyflakes output in quickfix window, containing
 " 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.
 "
 " function. It will go through the quickfix list and find all possible
 " imports, sort them and insert under current cursor position.
 "
index d5678750eb6db646effc86c0fd46b036560874e0..5ae47ba4c4a1d1aa88087cea5354fd99e3fb88eb 100644 (file)
@@ -1,2 +1,3 @@
 if exists("*python#importcompl#do") | finish | endif
 inoremap <F3> <C-R>=python#importcompl#do()<CR>
 if exists("*python#importcompl#do") | finish | endif
 inoremap <F3> <C-R>=python#importcompl#do()<CR>
+cnoremap <F3> call python#importcompl#all()<CR>
index a7d696a10f7a7340d646c6fc9eaf8cee9bccee48..7f92218d5f00eb20e019d72c7b74e5f1450bdf48 100644 (file)
@@ -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 <F6> :unlet! g:pylint_disable<CR>:call python#lint#start()<CR>
 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>
+map \e[17;2~ :redraw!<CR>:copen<CR>
 autocmd BufWritePost *.py call python#lint#start()
 autocmd BufWritePost *.py call python#lint#start()