写完后VIM执行命令":w"

时间:2016-10-18 08:20:50

标签: linux vim

执行<?xml version="1.0" encoding="utf-8"?> <RunSettings> <RunConfiguration> <!-- Add this line, default is 1, which makes it run single threaded --> <!-- 0 will use all available cores --> <MaxCpuCount>8</MaxCpuCount> </RunConfiguration> </RunSettings> 后,是否可以随时自动调用命令(例如:set invnu)?如果是这样,我该怎么做?

1 个答案:

答案 0 :(得分:5)

:au BufWritePost * :set invnu
最好添加文件扩展名过滤器来替换上面的*。