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 =~ '\ ' . arg3 . eq
endfunction
"" exec "!e: && cd E:\\PortableApps\\flake8-1.3 && C:\\Python27\\python.exe E:\\PortableApps\\flake8-1.3\\setup.py build"
"" exec "!e: && cd E:\\PortableApps\\flake8-1.3 && C:\\Python27\\python.exe E:\\PortableApps\\flake8-1.3\\setup.py install"
set autoindent " same level indent
set smartindent " next level indent
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set tags=tags;
set autochdir
call pathogen#infect()
filetype plugin on
filetype plugin indent on
autocmd FileType python setlocal et sta sw=4 sts=4
let Tlist_Ctags_Cmd = 'E:\PortableApps\ctags58\ctags'
let g:pydiction_location = 'E:\PortableApps\gVimPortable\App\vim\vim73\ftplugin\pydiction\complete-dict'
set encoding=utf-8
set langmenu=zh_CN.UTF-8
language message zh_CN.UTF-8
let Tlist_Inc_Winwidth=0
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
func! Run()
exec "w! temp.py"
if &filetype == "python"
exec '!C:\Python27\Python E:\PortableApps\stu\temp.py'
endif
endfunc
map :call Run()
set mouse=a
set nu
func! Run16en()
exec "%!xxd"
endfunc
func! Run16de()
exec "%!xxd -r"
endfunc
map :call Run16en()
map :call Run16de()
set guifont=Courier_new:h11
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决consle输出乱码
language messages zh_CN.utf-8
Share the post "我的~vimrc"
发表评论