修改用户根目录下.vimrc
set nocompatible
set number
set showcmd
set ruler
set hlsearch
set incsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=99
set expandtab
set autoindent
set fileformat=unix
"代码缩进
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4|
\ set shiftwidth=4|
\ set textwidth=99|
\ set expandtab|
"\ set autoindent|
\ set fileformat=unix
"filetype plugin indent on
nnoremap <silent> <F8> :TlistToggle<CR>
对于python 中文问题,上述设置好之后,python编码问题一定加上#encoding=utf-8