你可能会注意到, 默认情况下 WSL 里的 Vim 的方向键不工作了。要修复这个故障, 你需要在你的 ~/.vimrc
里添加如下内容:
$ cat ~/.vimrc set term=builtin_ansi
You may notice that every time you run sudo something
, your system complains that it cannot resolve it's own hostname, but then continues on anyway. To fix this annoyance, you need to add your system's hostname to /etc/hosts
:
$ cat /etc/hosts 127.0.0.1 localhost 127.0.0.1 nova ...
Here, my machine is called 'nova'.