~dricottone/vim-mypy

ref: 518676741fe729fc984d0258fd0f18a47f6fbe56 vim-mypy/autoload/mypy.vim -rw-r--r-- 470 bytes
51867674 — Integralist Setup 7 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" 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

function ExecuteMyPy()
  silent !clear
  execute "!mypy " . bufname("%")
endfunction