Coding Journal
吾生也有涯,而知也无涯 。以有涯随无涯,殆已!
Home
About This Blog
4/26/2020
Run Python Script in Vim
Add below Vim settings into .vimrc to run current editing python script in Vim seamlessly.
It assumes 'python3' is already in the PATH environment variable.
autocmd BufReadPost *.py :command! Py !python3 %:t cnoreabbrev py Py
Run the editing python script with the customized "py" command :
:py
Newer Post
Older Post
Home