0

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.

Skamah One
  • 2,456
  • 6
  • 21
  • 31

1 Answers1

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