Edit a file in-place in vim

前端 未结 3 506
情话喂你
情话喂你 2020-12-19 09:26

Normally, you don\'t actually edit a file in vim. If you run vim foo, edit, write and quit, vim unlinks foo and creates a new file and a new link

3条回答
  •  鱼传尺愫
    2020-12-19 09:54

    Check out the help for the backupcopy option and the notes on crontab in particular. The short answer is

    :set backupcopy=yes
    

提交回复
热议问题