1、vim ~/.vimrc,將下列內(nèi)容復(fù)制進(jìn)去
set nocompatible
set number
filetype on
set history=1000
set background=dark
syntax on
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
if has("vms")
set nobackup
else
set backup
endif
2练对、取消let python_highlight_all = 1在/usr/share/vim/vim74/syntax/python.vim前的引號(hào)
,添加下列行到該文件
syn keyword pythonBuiltin reversed sorted sum self
syn match pythonOper "=/|+/|-/|*/|{/|}/|[/|]/|(/|)/|/./|,"