if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
set encoding=utf-8
set helplang=cn
nmap <F4> :set spell<CR>
nmap <F5> :set nospell<CR>
set number
"set mouse=a
set hlsearch
set incsearch
set tabstop=4
set expandtab
set listchars=tab:>-,trail:-
set shiftwidth=4
set autoindent
set smartindent
set cindent
set confirm
set showmatch
set matchtime=5
set ignorecase
set nowrap
set cc=80,120
function AddTitle()
call setline(1,"/**")
call append(1," *Author: ** - **@**")
call append(2," *Last modified: " . strftime("%Y-%m-%d %H:%M"))
call append(3," *Filename: " . expand("%"))
call append(4," *Copyright 2014 ** Inc. All Rights Reserved.")
call append(5," */")
endf
map hd :call AddTitle():$o
vimrc
最新推荐文章于 2024-10-02 00:27:20 发布