开发者

Vim's advance word broken in python, how do I fix this?

Vim works fine for all other languages, but word detection seems wonky in python. For example, in the following snippet, with the cursor on the 'h' in shutil, I would expect prssing the w key to advance me to the period, instead I get moved to the "'" in front of export.

shutil.copytree(os.path.join('export', 'app'), os.path.join('export', 'pacakge'))

Any idea what could cause this? How can I d开发者_运维知识库etect the cause? How can I fix it?


Look to see what the option "iskeyword" is set to. Chances are the Python syntax file is changing it. Normally it's set to @,48-57,_,192-255.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜