<p>是否可以修改<a href="http://www.vim.org/scripts/script.php?script_id=790" rel="noreferrer">python.vim</a>(以及相应的colorscheme文件),以便在vim下的python语法高亮显示期间,class和def语句(a.k.a.docstrings)下的三重引号字符串作为注释突出显示吗?在</p>
<pre><code>class URLopener:
"""Class to open URLs.
This is a class rather than just a subroutine because we may need
more than one set of global protocol-specific options.
Note -- this is a base class for those who don't want the
automatic handling of errors type 302 (relocated) and 401
(authorization needed)."""
def addheader(self, *args):
"""Add a header to be used by the HTTP interface only
e.g. u.addheader('Accept', 'sound/basic')"""
# sample comment
</code></pre>