Skip to content

Instantly share code, notes, and snippets.

@narutaro
Last active February 14, 2019 01:17
Show Gist options
  • Save narutaro/ca83db33da2b701a5667 to your computer and use it in GitHub Desktop.
Save narutaro/ca83db33da2b701a5667 to your computer and use it in GitHub Desktop.
Nerdtree in docker container

Nerdtree in docker container

Symptom

  • In the tree view of nerdtree, you see ?~V? instead of arrow shape.

Possible reason

  1. vim is not installed but vi
  2. The locale setting is wrong

Solutions

Just install vim

sudo apt-get install vim

Check and fix the current locale

root@785c117ae81d:/# locale -a
C
C.UTF-8
POSIX
root@785c117ae81d:/# sudo locale-gen en_US.UTF-8
Generating locales...
  en_US.UTF-8... done
Generation complete.
root@785c117ae81d:/# locale -a
C
C.UTF-8
en_US.utf8
POSIX

Put them in .bashrc

export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
@jeff-r
Copy link

jeff-r commented Jun 7, 2018

Just ran into this. Thanks for the gist.

@marcoemorais
Copy link

Same for me. Thanks a bunch. Also note that locale-gen is bundled with the locales package.

@eastack
Copy link

eastack commented Oct 27, 2018

Thanks for the gist.

@leakingtapan
Copy link

nice tip. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment