In python 2.6 you are forced to define the encoding of the file your editing if it contains characters outside the ASCII encoding. For making this task easier I have defined the following mapping in my .vimrc: map #1 i# -*- coding: utf-8 -*- ^M^M So now just pressing F1 I get the header inserted in the current line.

Tagged as ... No tags found!

If you liked this post, you can donate using Bitcoin 12jVrWkk5S6x5hEizThZwgTx59KxaDdK4C