小编典典

python的vim设置

python

我有以下设置文件:

# ~/.vimrc
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set softtabstop=4
set autoindent

我将如何使这些设置仅适用于python?另外,我将如何添加python着色(如textmate对每种语言所做的着色)?


阅读 198

收藏
2021-01-20

共1个答案

小编典典

我的配置中有以下几行:

filetype plugin indent on
syntax on
au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smarttab autoindent
2021-01-20