vim配置

作者: 陈家威 | 来源:发表于2016-03-18 02:12 被阅读0次

set number

set shortmess=atl

set autoindent

set cindent

set tabstop=4

set softtabstop=4

set shiftwidth=4

:inoremap ( ()i

:inoremap ) =ClosePair(')')

:inoremap { {}O

:inoremap } =ClosePair('}')

:inoremap [ []i

:inoremap ] =ClosePair(']')

:inoremap " ""i

:inoremap ' ''i

function! ClosePair(char)

if getline('.')[col('.') - 1] == a:char

return "\"

else

return a:char

endif

endfunction

filetype plugin indent on

set nobackup

set nowb

相关文章

网友评论

      本文标题:vim配置

      本文链接:https://www.haomeiwen.com/subject/liygcttx.html