在使用docker容器时,有时候里边没有安装vi,敲vi命令时提示说:vi: command not found,这个时候就需要安装vi,可是当你敲apt-get install vi命令时,提示: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vi 这时候需要敲:apt-get update,这个命令的作用是…
进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filename....filename :打开多个文件,依次进行编辑 移动光标类命令h :光标左…
进入vi vi filename 打开或新建文件,并将光标置于第一行首 vi +n filename 打开文件,并将光标置于第 n行首 vi + filename 打开文件,并将光标置于最后一行首 vi -r filename 在上次正用 vi编辑时发生系统崩溃,恢复文件 vi file1....filen 打开多个文件,依次编辑 vi的工作模式 命令行模式 (command m…
Vundle is short for Vim bundle and is a Vim plugin manager. 从git上下载vundle $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 配置vundle插件 Put this at the top of your .vimrc to use Vundle. Remove plugins you don't need, the…