Refer to Current File
To refer to the current file in Vim, you can use %
.
So to run the current file in python (to test it out)
!python3 % # runs the current file in python3
Nov 08, 20241 min read
To refer to the current file in Vim, you can use %
.
So to run the current file in python (to test it out)
!python3 % # runs the current file in python3