最小化安装完debian 12后给vim安装插件,发现vim编译没有支持python3
于是网上搜了一圈发现都在说要自己编译vim
我 xxoo?
其实安装vim-nox 这个包就能支持了
sudo apt install vim-nox This package contains a version of vim compiled with support for scripting with Lua, Perl, Python 3, Ruby, and Tcl but no GUI.
进入新创建的目录
mkdir new_dir cd $_ vim打开文件忘记sudo,导致保存不了
!:执行外部命令 tee:read from standard input and write to - standard output and files %:vim寄存器,保存当前编辑文件路径 :w !sudo tee %