Coding Journal
吾生也有涯,而知也无涯 。以有涯随无涯,殆已!
Home
About This Blog
Showing posts with label
Vim
.
Show all posts
Showing posts with label
Vim
.
Show all posts
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
Older Posts
Home
Subscribe to:
Posts (Atom)