set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
let cmd = '""' . $VIMRUNTIME . '\diff"'
let eq = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
filetype on
let Tlist_Ctags_Cmd = $VIM.'\vimfiles\ctags58\ctags.exe'
let Tlist_Show_One_File = 1
let Tlist_Exit_OnlyWindow = 1
colo murphy
set fileencoding=utf-8
set fileencodings=utf-8,gb2312,gbk,gb18030
set go=
set hls
set nobackup
set nowritebackup
set noswapfile
set nu
set tags=tags;
set autochdir
:filetype plugin on
autocmd FileType python setlocal et sta sw=4 sts=4
let g:winManagerWindowLayout='BufExplorer|FileExplorer|TagList'
autocmd BufNewFile * silent! 0r $VIM/vimfiles/templates/%:e.tpl
map <F2> <Esc>gT<CR>
map <F3> <Esc>gt<CR>
map <F12> <Esc>:WMToggle<CR>
map <F11> <Esc><C-W>w
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
map <F5> <Esc>:mksession! $VIM\vim_data.vim<CR>:wviminfo $VIM\vim_data.viminfo<CR>
map <F7> <Esc>:source $VIM\vim_data.vim<CR>:rviminfo $VIM\vim_data.viminfo<CR>
map <F10> :NERDTreeToggle<CR>
nnoremap <Down> gj
nnoremap <Up> gk
================================================
插件地址:
http://www.vim.org/scripts/script.php?script_id=1658
http://www.vim.org/scripts/script.php?script_id=273
http://vim.sourceforge.net/scripts/script.php?script_id=42
http://www.vim.org/scripts/script.php?script_id=69