我可以配置Vim,以便进行原子写入吗?
默认的Vim行为是:
移动file.txt到file.txt~
file.txt
file.txt~
将缓冲区内容写入 file.txt
但这会导致一些问题,compass watch例如
compass watch
我想要的行为如下:
将缓冲区内容写入 file.txt~
移动file.txt~到file.txt
我已经看过了备份,backupcopy和writebackup选择,但我不能让Vim的配置为我想.