您的位置:首页 > 其它

我的.vimrc

2015-11-06 09:55 363 查看
set guifont=Monaco:h14

set background=light

set shortmess=atI

set cindent autoindent number sts=4 sw=4 ts=4 et

set nobackup

filetype on

filetype plugin on

filetype indent on

autocmd FileType python set omnifunc=pythoncomplete

setlocal noswapfile

set bufhidden=hide

syntax on

set nocompatible

set backspace=indent,eol,start

func! DeleteTrailingWS()

exe "normal mz"

%s/\s\+$//ge

exe "normal `z"

endfunc

autocmd BufWrite *.py,*.t2t,*.sh :call DeleteTrailingWS()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: