我常用的vim的配置记录如下
?
"vimrc配置的注释符号是一个双引号
"显示行号,取消则set nonu
set nu
"高亮显示搜索字符
set hls
"显示空格和Tab符号,并设定一定的特色
set list
set listchars=tab:>-,trail:-
"设置tab键的长度为4个空格
set tabstop=4
"vim-plug setting start
call plug#begin('~/.vim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
Plug 'ycm-core/YouCompleteMe'
call plug#end()
"vim-plug setting end
"CtrlP setting start
let g:ctrlp_map = '<c-p>'
let mapleader=','
"CtrlP setting end
"NERDTree seting start
nnoremap <leader>v :NERDTreeFind<cr>
map <F3> :NERDTreeMirror<CR>
map <F3> :NERDTreeToggle<CR>
"NERDTree seting end
?
|