贴一些自用vim 简答配置 ,直接在 /root/.vim/.vimro
中添加就行了,另外需要一些插件 在后面会打个包共享一下,方便你我他
没找到合适的文件共享方式,百度网盘那玩意我是真的不想用
" vim set
set fo-=r
" set paste
" Set internal encoding of vim, not needed on neovim, since coc.nvim using some
" unicode characters in the file autoload/float.vim
set encoding=utf-8
" TextEdit might fail if hidden is not set.
set hidden
" Some servers have issues with backup files, see #649.
set nobackup
set nowritebackup
" Give more space for displaying messages.
set cmdheight=2
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
"if has("nvim-0.5.0") || has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
" set signcolumn=number
"else
" set signcolumn=yes
"endif
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.
set hlsearch
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle<cr>
set ts=4
set ma
cs add cscope.out
nmap tr :vertical res-20<cr>
nmap ta :vertical res+20<cr>
nmap TR :vertical res-80<cr>
nmap TA :vertical res+80<cr>
set autoindent
set number
set cindent
set autoindent
set shiftwidth=4
set softtabstop=4
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'}
Plug 'instant-markdown/vim-instant-markdown', {'for': 'markdown', 'do': 'yarn install'}
Plug 'preservim/nerdtree'
Plug 'Yggdroot/LeaderF', { 'do': ':LeaderfInstallCExtension' }
Plug 'lfv89/vim-interestingwords'
call plug#end()