I've just installed python-mode for my Vim, but I can't figure out how to run it on an open buffer, without saving the buffer as a .py
file. Only way I can run python-mode seems to be by opening a .py
file.
Asked
Active
Viewed 341 times
0

Skamah One
- 2,456
- 6
- 21
- 31
-
2Try `:set filetype=python`. – Kenney Feb 20 '16 at 16:10
1 Answers
0
:set filetype=python
This will tell Vim to treat the buffer as if it were a Python file.

Markus Meskanen
- 19,939
- 18
- 80
- 119