问题
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++
Best Regards,
回答1:
Since I cannot make a comment, I will make an answer instead. This same problem has been solved here: Vim overwrites filename when writing
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.
来源:https://stackoverflow.com/questions/64458099/vim-save-file-in-lower-case