博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
常用VIM插件配置
阅读量:6533 次
发布时间:2019-06-24

本文共 2954 字,大约阅读时间需要 9 分钟。

状态栏美化

除了airline本体还要下

和打过powerline补丁的字体

常用设置:

set laststatus=2                                           " 总是显示状态栏set noshowmodeset t_Co=256                                               " 显示颜色"let g:airline_theme="badwolf"let g:airline_theme="gruvbox""let g:airline_theme="one"if !exists('g:airline_symbols')    let g:airline_symbols = {}endiflet g:airline_powerline_fonts = 1                          " 使用powerline打过补丁的字体let g:airline#extensions#tabline#enabled = 1               " 开启tabline"let g:airline#extensions#tabline#left_sep = ' '            " tabline中当前buffer两端的分隔字符"let g:airline#extensions#tabline#left_alt_sep = '|'        " tabline中未激活buffer两端的分隔字符"let g:airline#extensions#tabline#buffer_nr_show = 1        " tabline中buffer显示编号let g:airline#extensions#tabline#formatter = 'unique_tail' " 显示标签的样式为只显示文件名

nerdcommenter 代码注释

常用设置:

let g:NERDSpaceDelims = 1                                             " Add spaces after comment delimiters by defaultlet g:NERDCompactSexyComs = 1                                         " Use compact syntax for prettified multi-line commentslet g:NERDDefaultAlign = 'left'                                       " Align line-wise comment delimiters flush left instead of following code indentation" let g:NERDAltDelims_java = 1                                          " Set a language to use its alternate delimiters by default" let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } } " Add your own custom formats or override the defaultslet g:NERDCommentEmptyLines = 1                                       " Allow commenting and inverting empty lines (useful when commenting a region)let g:NERDTrimTrailingWhitespace = 1                                  " Enable trimming of trailing whitespace when uncommentinglet g:NERDToggleCheckAllLines = 1                                     " Enable NERDCommenterToggle to check all selected lines is commented or not

高亮单词

Basic Usage:

m : 高亮鼠标选中的单词

n : 取消高亮鼠标选中的单词,若鼠标没有选中任何单词,则取消所有高亮的单词

Basic Usage:

mx - Toggle mark 'x' and display it in the leftmost column

dmx - Remove mark 'x' where x is a-zA-Z
m - Delete all marks from the current buffer

m/ - Open location list and display marks from current buffer

m[0-9] - Toggle the corresponding marker !@#$%^&*()
m? - Open location list and display markers from current buffer
m - Remove all markers

文件搜索

Basic Usage:

Run :CtrlP or :CtrlP [starting-directory] to invoke CtrlP in find file mode.

Run :CtrlPBuffer or :CtrlPMRU to invoke CtrlP in find buffer or find MRU file mode.
F5 :刷新缓存

文本搜索

Basic Usage:

vv - Grep for the word under the cursor, match all occurences,

like |gstar|
vV - Grep for the word under the cursor, match whole word, like
|star|
va - Like vv, but add to existing list
vA - Like vV, but add to existing list
vr - Perform a global search on the word under the cursor
and prompt for a pattern with which to replace it.

备用:

先要安装

转载于:https://www.cnblogs.com/antisamael/p/10332359.html

你可能感兴趣的文章
shell计算工具源码
查看>>
像素密度和分辨率
查看>>
amoeba连接mysql--ERROR 2006 (HY000): MySQL server has gone away
查看>>
Vmware vSphere(Esxi)常见问题汇总(转载)
查看>>
BGP路径选择次序
查看>>
session失效设置
查看>>
C++11新特性:自动类型推断和类型获取
查看>>
shell脚本编写 之 条件选择,条件判断,循环语句
查看>>
Ubuntu libc.so.6 位置问题
查看>>
批量分发 expect
查看>>
如何保护SSL证书私钥安全
查看>>
清华计算机科学与技术系 攻读博士学位研究生培养课程
查看>>
使用for循环对 golang 中结构体数组取值进行修改时,需要注意的问题
查看>>
denyhost防止SSH暴力破解
查看>>
3par的零检测功能使用方法及实测
查看>>
源码编译安装LNMP环境及配置基于域名访问的多虚拟主机
查看>>
Unix原理与应用学习笔记----第十一章 文件的其它属性
查看>>
class-3 linux文件系统知识(一)
查看>>
json相关
查看>>
MacAir苹果本(2013AJ7629)安装win7单系统的曲折经历
查看>>