1 "====================== 2 "=== Enhance Editor === 3 "====================== 4 let mapleader = " " 5 syntax on 6 set number 7 set norelativenumber 8 set cursorline 9 set wrap 10 set showcmd 11 set hlsearch 12 exec "nohlsearch" 13 set incsearch 14 set ignorecase 15 set smartcase 16 set wildmenu 17 set notimeout 18 set jumpoptions=stack 19 20 noremap <LEADER><CR> :nohlsearch<CR> 21 noremap = nzz 22 noremap - Nzz 23 map S :w<CR> 24 map R :source $MYVIMRC<CR> 25 noremap U 5k 26 noremap E 5j
" Use release branch (recommend) Plug 'neoclide/coc.nvim', {'branch': 'release'}
调用:PlugInstall安装插件
安装一些coc扩展
1
:CocInstall coc-json coc-tsserver
配置文件
1
5.2
安装代码高亮插件vim-lsp-cxx-highlight
配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
" ==== jackguo380/vim-lsp-cxx-highlight ==== hi default link LspCxxHlSymFunction cxxFunction hi default link LspCxxHlSymFunctionParameter cxxParameter hi default link LspCxxHlSymFileVariableStatic cxxFileVariableStatic hi default link LspCxxHlSymStruct cxxStruct hi default link LspCxxHlSymStructField cxxStructField hi default link LspCxxHlSymFileTypeAlias cxxTypeAlias hi default link LspCxxHlSymClassField cxxStructField hi default link LspCxxHlSymEnum cxxEnum hi default link LspCxxHlSymVariableExtern cxxFileVariableStatic hi default link LspCxxHlSymVariable cxxVariable hi default link LspCxxHlSymMacro cxxMacro hi default link LspCxxHlSymEnumMember cxxEnumMember hi default link LspCxxHlSymParameter cxxParameter hi default link LspCxxHlSymClass cxxTypeAlias