给vimrepress增加显示分类的功能并让它支持CodeColorer插件

那个版本很古老的vimpress是有显示分类的功能的,不知道pt的vimrepress为什么去掉了。。。
于是想办法给它加上了,然后就是修改其BlogCode 使之符合CodeColorer插件的语法标记规则。

显示分类:

vimrepress.tar.bz2 (10.0 KB)

目前此插件存在的BUG(如果把数字调小,比如3或者4,则一般不会出问题):

1
:BlogList post 10

然后就报错,估计是超时,试着加一个默认socket 超时,貌似没用。。。

Traceback (most recent call last):
File ““, line 1, in
File ““, line 170, in __check
File “
“, line 195, in __check
File “
“, line 202, in __check
File “
“, line 453, in blog_list
File “/usr/lib/python2.7/xmlrpclib.py”, line 1224, in __call__
return self.__send(self.__name, args)
File “/usr/lib/python2.7/xmlrpclib.py”, line 1570, in __request
verbose=self.__verbose
File “/usr/lib/python2.7/xmlrpclib.py”, line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File “/usr/lib/python2.7/xmlrpclib.py”, line 1297, in single_request
return self.parse_response(response)
File “/usr/lib/python2.7/xmlrpclib.py”, line 1450, in parse_response
stream = GzipDecodedResponse(response)
File “/usr/lib/python2.7/xmlrpclib.py”, line 1204, in __init__
self.stringio = StringIO.StringIO(response.read())
File “/usr/lib/python2.7/httplib.py”, line 540, in read
s = self._safe_read(self.length)
File “/usr/lib/python2.7/httplib.py”, line 637, in _safe_read
raise IncompleteRead(”.join(s), amt)
httplib.IncompleteRead: IncompleteRead(8579 bytes read, 32490 more expected)

更多
One Response Post a comment
  1. Hacklog » 修正vimrepress的一个bug

    [...] 一个一个敲,用zencoding-vim 这个插件即可。 这次修复的bug是在《Hacklog » 给vimrepress增加显示分类的功能并让它支持CodeColorer插件》 一文中说的那个httplib.IncompleteRead: IncompleteRead(8579 bytes read, 32490 more [...]

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS