vim常见使用方法

代码提示插件

安装install

下载AutoComplPop插件,将压缩包解压,将每个文件依次放入家目录~/.vim文件夹中

## 如果.vim文件夹中不存在对应的文件夹,则手动创建一个,目录结构如下
.
├── autoload
   └── acp.vim
└── plugin
    └── acp.vim

INSTALLATION acp-installation

Put all files into your runtime directory. If you have the zip file, extract it to your runtime directory.

You should place the files as follows: > /plugin/acp.vim /doc/acp.txt ... <

常用快捷键

  1. 在命令行模式下使用yy复制光标所在行

  2. 在命令行模式下使用dd删除光标所在行

  3. 在命令行模式下使用p粘贴yy所复制的行

  4. 在命令模式下使用u进行撤回

  5. 在输入模式下使用shift +insert粘贴剪切板内容

参考

Last updated