半肾
精华
|
战斗力 鹅
|
回帖 0
注册时间 2007-12-28
|

我是用:
set backup
set backupdir=D:\\\\Backup\\\\Vim
autocmd BufWritePre * let &backupext = strftime(\".%y%m%d-%H%M%S\")
这个纯粹是个人习惯吧,备份文件是以防万一弄错什么快速恢复而已,我的 UE 备 ...
eph 发表于 2010/6/30 18:44 
你不如把Vim的Redo/Undo开大
还需要啥的上个git/hg
我vimrc,200多行,其中很多还是键映射和插件支持,还不及我的zshrc,zshrc有300多行
henvelleng 发表于 2010/6/30 18:46 
怎么这么多,我的100行不到,近一半还是gVim for Win自带的
set nocompatible
\\" Encoding config, noticing UTF-8 is the standard, utf-8 isn\'t
\\" set fencs=UTF-8,ucs-bom,shift-jis,big5,gb18030,gbk,gb2312,cp936
set fencs=ucs-bom,utf-8,GBK,big5,gb2312,cp936,gb18030
\\" set fenc=utf8-bom
\\"set fileformats=dos
\\" Indent options
set smartindent
set cinoptions :0
set cinoptions=b1
set cinoptions=g0
set ts=4
set sw=4
\\" Color Config
colo evening
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
\\" omni enable
set nocp
filetype plugin on
\\" Start maximize
au GUIEnter * simalt ~x
\\" No Toolbox
set guioptions-=T
\\" Consolas font
set guifont=Consolas
set guifontwide=NSimsun
behave mswin
\\" CPP Complete
let OmniCpp_MayCompleteScope = 1
\\" Show line number
set nu!
set clipboard+=unnamed
\\" auto build tags
map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
\\" Tags
set tags+=.\\tags
set tags+=D:/Qt/4.5.0/include/tags
set tags+=D:/Qt/4.5.0/src/tags
\\" Fold
set fdm=marker
\\"set cms=//%s
set noimc
\\" IMPORTANT: win32 users will need to have \'shellslash\' set so that latex
\\" can be called correctly.
set shellslash
\\" IMPORTANT: grep will sometimes skip displaying the file name if you
\\" search in a singe file. This will confuse Latex-Suite. Set your grep
\\" program to always generate a file-name.
set grepprg=grep\\ -nH\\ $*
\\" OPTIONAL: This enables automatic indentation as you type.
filetype indent on
\\" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
\\" \'plaintex\' instead of \'tex\', which results in vim-latex not being loaded.
\\" The following changes the default filetype back to \'tex\':
let g:tex_flavor=\'latex\' |
|