debian 配置nano改vim安装visudo

  1. apt-get install vim sudo
  2. update-alternatives --config editor
  3.  选择 vim.tiny
  4.  visudo
  5.  最后一行添加  test ALL=(ALL:ALL) NOPASSWD: ALL

 

编辑vim配置文件禁用可视模式, vim /etc/vim/vimrc

let skip_defaults_vim = 1
if has('mouse')
        set mouse-=a
endif

原文:https://blog.csdn.net/asdfegg/article/details/73943933

posted @ 2021-08-02 14:19  zhaoguanhao  阅读(210)  评论(0编辑  收藏  举报