July 28, 2011
:vnoremap < <gv
可一多次块缩进windows 下编辑软件个目录下的_vimrc 文件,在最后添加 set nobackup 可取消自动备份,添加 set backupdir=$VIMbackup 即可自动备份到特定目录;Linux 下编辑家目录下的.vim/.vimrc 添加对应选项即可。
" ---- Global Setting ----
" set pwd dirs
let g:Source=""
" set color style
colo torte
" hide toolbar menu
set guioptions-=T
set guioptions-=m
" turn off autobackup
set nu nobackup
" change pwd to path of current file
set autochdir
" setting for python
set ts=8 et sw=4 sts=4
" setting for encode
" set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
" ---- end of Global Setting ----
" ---- Plugin Settings ----
" shortcut for NERDTree
" map :NERDTreeMirror
" map :NERDTreeToggle
" ---- end of Plugin Settin
我是 xdays, 记录着我技术的成长,生活的点滴和感悟,能对你有所帮助那更好。