Vim save file in lower case

扶醉桌前 提交于 2021-02-10 15:54:04

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!