配置java
1. 竖线python
为了统一python代码规范,一行最多130个字符,则须要在最大列处显示一竖线c++
:hi ColorColumn ctermbg=lightgreen autocmd FileType python,c,cpp set cc=131
2. 自动补全括号git
inoremap ' ''<ESC>i inoremap " ""<ESC>i inoremap ( ()<ESC>i inoremap [ []<ESC>i inoremap { {}<ESC>i
插件github
1. VundleVim/Vundle.vimvim
插件管理工具缓存
#TODO工具
2. yggdroot/indentlineui
显示缩进spa
vundle安装
let g:indentLine_char = '¦'
let g:indentLine_first_char = '¦'
let g:indentLine_showFirstIndentLevel = 0
let g:indentLine_color_term = 239
let g:indentLine_color_gui = '#A4E57E'
3. ctags
生成缓存
map <F8> :!cd ~ && ctags -R --languages=python,c++,java --python-kinds=-i .<CR>
set tags+=~/tags
其中“--python-kinds=-i”表示忽略python代码中的引用(import)。