題 MacVim會刪除文件顏色標籤


這可能更適合apple.SE,但無論如何這裡是我的問題。

使用MacVim編輯具有顏色標籤的文件時,保存文件時顏色標籤會消失。 我覺得這是因為vim使用臨時文件(緩衝區),並用緩衝區替換原始文件......但如果我錯了請糾正我。

這是正常的嗎?這是我應該報告的錯誤嗎?


2
2017-10-09 14:36


起源




答案:


包括 set nowritebackup 和 set nobackup  在你的 .vimrc/.gvimrc

:help writebackup

'writebackup' 'wb'  boolean (default on with |+writebackup| feature, off
                    otherwise)
            global
            {not in Vi}
    Make a backup before overwriting a file.  The backup is removed after
    the file was successfully written, unless the 'backup' option is
    also on.  Reset this option if your file system is almost full.  See
    |backup-table| for another explanation.
    When the 'backupskip' pattern matches, a backup is not made anyway.
    NOTE: This option is set to the default value when 'compatible' is
    set.

3
2017-10-09 14:46