Refer to Current File

Table of Contents

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