【发布时间】:2014-07-29 18:34:39
【问题描述】:
假设我们有一个这样的 xml 文件:
<tag1>
somthing here
</tag1>
<tag2>
somthing here
</tag2>
<region>
autocomplete here
</region>
每当光标在区域标签内时,我希望自动完成 c-n 和 c-x c-l 仅限于一些自定义选项,例如:
c-n:
myword1, myword2, myword3, myword4
c-x c-l:
myline1
myline2
myline3
myline4
有可能吗?
python 中的解决方案将是首选。
【问题讨论】:
标签: python autocomplete vim