我有以下设置文件:
# ~/.vimrc set tabstop=4 set shiftwidth=4 set smarttab set expandtab set softtabstop=4 set autoindent
我将如何使这些设置仅适用于python?另外,我将如何添加python着色(如textmate对每种语言所做的着色)?
我的配置中有以下几行:
filetype plugin indent on syntax on au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smarttab autoindent