在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.