vim
- vim的替换
:s/old/new/gc
- vim读取shell文件
:r !ls
- 行尾快捷键
$
- 按到
ctrl+s
会使得vim停止向 terminal输出,按ctrl +q
解除
vim plus学习
- vim plus instruction
- quick comment:
- normal mode:
gcc
for one line,gcap
for paragrah - visual mode:
gc
for commenting the selected lines
- normal mode:
Vim-plug
Command Description
PlugInstall [name ...] [#threads]
Install pluginsPlugUpdate [name ...] [#threads]
Install or update pluginsPlugClean
[!] Remove unlisted plugins (bang version will clean without prompt)PlugUpgrade
Upgrade vim-plug itselfPlugStatus
Check the status of pluginsPlugDiff
Examine changes from the previous update and the pending changesPlugSnapshot[!] [output path]
Generate script for restoring the current snapshot of the plugins
vim-surround
vimrc
- 更新vimrc
:source ~/.vimrc
- vimrc语法
- vim map 语法
- *noremap 取消代码递归,建议全部使用noremap取代map
- 反斜杠是忽略换行
?:
条件选择语句
参考:
- http://www.linuxboy.net/linuxjc/20778.html
- 条件,循环
自动补全
-
Coc.nvim插件下载coc github
- 调整配置文件
- nodejs可从Ubuntu 软件商店下载
- 无法下载扩展 使用vim-plug 方式 https://github.com/neoclide/coc.nvim/issues/2127
- npmrc换源
- coc-snippets 是代码补全引擎
- vim-snippets是别人编写好的snippets,从~/.vim/plugged/vim-snippets可找到对应文件
:CocCommand snippets.editSnippets
打开自己代码片段的命令- 安装语言插件博客 https://www.cnblogs.com/hystill/p/13783183.html
参考:
1.vim-plug github