~dricottone/vim-mypy

ref: b62fca16d42857888ab6dc7a8ffcbab85f224fa9 vim-mypy/autoload/mypy.vim -rw-r--r-- 584 bytes
b62fca16 — dricottone Remove --fast-parser option 5 years ago
                                                                                
51867674 Integralist
be76aa31 Integralist
51867674 Integralist
be76aa31 Integralist
51867674 Integralist
b62fca16 dricottone
51867674 Integralist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" The autoload script allows the function to be defined
" without loading it, until, the user actually calls it
"
" This helps reduce the startup time for Vim
" As plugin/mypy.vim only contains simple logic/mappings
" All functional aspects of code is defined in autoload
"
" Add mypy# prefix to any calls for ExecuteMyPy
" Vim will search in this autoload directory for the function
" Note: the function defined here also needs the mypy# prefix

function mypy#ExecuteMyPy()
  silent !clear
  execute "!mypy --ignore-missing-imports --follow-imports=skip " . bufname("%")
endfunction