Vim 以小写形式保存文件 [英] Vim save file in lower case
问题描述
我买了一台新笔记本电脑.现在当我用 vim 保存文件时,文件名替换为小写名称.关于如何解决这个问题的任何想法?文件名.vhd ->文件名.vhd我的记事本++没有这个问题
I got a new laptop. And now when i save a file with vim, the file name replace by lowercase name. Any idea on how to solve this? FileName.vhd -> filename.vhd I don't have this issue with notepad++
此致,
推荐答案
由于我无法发表评论,我将改为作出回答.同样的问题已在这里解决:Vim 在写入时覆盖文件名
Since I cannot make a comment, I will make an answer instead. This same problem has been solved here: Vim overwrites filename when writing
简而言之:将 set backupcopy=yes
放在您的 vimrc 中,或者在 Vim 中键入 :set backupcopy=yes
以仅在当前会话中应用它.这会使保存文件的速度稍微慢一些,但文件名不会改变.
In short: put set backupcopy=yes
in your vimrc, or type :set backupcopy=yes
in Vim to only apply it in the current session. This will make saving files ever so slightly slower, but the filename won't be changed.
这篇关于Vim 以小写形式保存文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!