To edit a file, the permissions for that file must be set to 666.
要编辑一个文件,这个文件的权限必须设置为666。
So now you'll never see the swapfile message; your Vim session will just automatically quit if you try to edit a file that's being edited elsewhere.
那么现在您就永远不会看到swapfile消息;您的Vim会话将会自动退出,如果您试图编辑一个正在其它地方进行编辑的文件。
One of the most useful features of Vim is that it automatically detects when you attempt to edit a file that is currently being edited by some other instance of Vim.
Vim最有用的特性之一就是当您打算编辑一个当前正在由其它Vim实例编辑的文件时,它会进行自动检测。
应用推荐