问题描述
我有一个关于 Vim 的问题.所以我有一个收件人.cfg 配置文件,它被一个名为 check.sh 的脚本使用,该脚本发送一些统计信息(像短信一样发送),并且每分钟通过 cron 运行一次.
I have a question about Vim.So i have a recipients.cfg config file,and it is being used by a script named check.sh that is sending some stats (send like an sms), and is running every minute via cron.
如果我 Vim 接收者.cfg 并让它打开大约 10 分钟,check.sh 是否仍然能够使用接收者.cfg 并发送统计信息?
If i Vim recipients.cfg and leave it open for like 10 minutes, will check.sh still be able to use the recipients.cfg and send the stats?
谢谢!
推荐答案
是.
Vim 只会为您正在编辑的文件创建隐藏的 .swp 文件,用于恢复目的,并同时锁定其他 Vim 会话不写入文件.
Yes.
Vim only creates hidden .swp files of the file you are editing, for recovery purposes, and also to lock other Vim sessions from writing to the file at the same time.
这篇关于在脚本使用时在 Vim 编辑器中打开配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!