vim - nerdtree suddenly broke

前端 未结 3 1583
长发绾君心
长发绾君心 2020-12-23 09:54

\"enter

Nerdtree has suddenly started acting a little strange. As you can see in the s

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 10:55

    As someone suggested in the comments, it was indeed an encoding issue. I had recently switched to zsh.

    Adding the following to your bashrc / zshrc etc.. should fix the problem

    export LC_ALL=en_US.utf-8 
    export LANG="$LC_ALL" 
    

    Alternatively you can tell NERDTree not to use the fancy arrow characters, by adding

    let g:NERDTreeDirArrows=0
    

    to your vimrc which will allow you to keep your current encoding

提交回复
热议问题