
vim
蓝鲸123
做更好的自己
展开
-
vim编辑器的定义
参考:https://missing-semester-cn.github.io/2020/editors/替换~/.vimrc" Comments in Vimscript start with a `"`." If you open this file in Vim, it'll be syntax highlighted for you." Vim is based on Vi. Setting `nocompatible` switches from the default" Vi原创 2020-12-20 20:42:38 · 370 阅读 · 1 评论 -
vim 使用用户配置
简单的个性化配置:~/.test_vimrc"common conf {{ 通用配置filetype on "文件类型自动检测syntax on "关键字高亮syntax enable "语法高亮set nocompatible "不使用兼容模式set foldlevelstart=99 "默认原创 2020-10-25 13:53:40 · 380 阅读 · 0 评论 -
vim 怎么取消高亮 或取消选中状态
在Vi里面如果要搜索某个关键字,只要键入/xxx就可以了,比如,我要搜索一个函数,我就键入 /snprintf 然后回车,一个文件中,所有出现这个字样的地方都会被高亮显示。按n键,就可以自动把光标跳到下一个。 但是,用好这个功能,怎么消除高亮呢,我以前一直不知道,弄得自己也很无奈。 终于在网上看到,只要键入 :noh 就可以了。...转载 2018-07-01 10:44:39 · 7477 阅读 · 0 评论