在Docker中安裝了dotnetcore 2.0.0 的sdk,沒有發現可用的編輯器,該sdk是基於debian:stretch構建的,以前沒玩過debian,因爲CentOS玩的多一些所以對vim熟一些,所以繼續入vim的坑,但是根據搜到的結果執行update-alternatives --config editor
沒有任何內容,執行apt-get install vim
同樣無效。
可以先執行apt-get update
然後執行apt-get upgrade
,然後再去執行apt-get install vim
就可以了。
root@8648067c5e4d:/# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libgpm2 vim-common vim-runtime xxd
Suggested packages:
gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
libgpm2 vim vim-common vim-runtime xxd
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 6766 kB of archives.
After this operation, 31.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
然後vim就可以使用了
enjoy it.