Code folding is not saved in my vimrc

后端 未结 6 1468
伪装坚强ぢ
伪装坚强ぢ 2021-02-07 08:25

I added the following code to my .vimrc:

\" save and restore folds when a file is closed and re-opened
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* sil         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 08:56

    i had a similar problem. maybe you have to create the directory which holds the data.

    mkdir -p ~/.vim/view
    chmod 0750 ~/.vim ~/.vim/view
    

提交回复
热议问题