Why VIM backup filenames are not correct? 'backupdir' option not performing as expected

前端 未结 5 378
刺人心
刺人心 2021-01-04 04:15

I\'m building a custom vimrc to improve my workflow, and I really liked the idea of setting a centralized directory to keep all backup, swap and undo files together, like th

5条回答
  •  长情又很酷
    2021-01-04 05:14

    As of Vim 8.1.0251, using backupdir with // at the end of the path works as expected.

    The issue was fixed by commit b782ba475a3f8f2b0be99dda164ba4545347f60f (patch 8.1.0251: using full path is not supported for 'backupdir') on 8 Aug 2018.

    (For neovim users: the issue has also been fixed).

提交回复
热议问题