sponsor Vim development Vim logo Vim Book Ad

python_encoding.vim : Recognize python source file encoding directive(PEP 0263)

 script karma  Rating 6/8, Downloaded by 829  Comments, bugs, improvements  Vim wiki

created by
Sangpil Yoon
 
script type
ftplugin
 
description
A newly added feature of python 2.3 is PEP 0263(http://www.python.org/peps/pep-0263.html). Now you can add a magic comment that defines the encoding of the source file. This script recognizes this directive and changes Vim's encoding accordingly.
 
install details
Just put it in your ftplugin directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
python_encoding.vim 0.1 2003-09-02 6.0 Sangpil Yoon Initial upload
ip used for rating: 3.142.53.68

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github