LoginSignup
1
0

More than 3 years have passed since last update.

Vim で Python 用の設定が効かないときの対処

Posted at

主に自分用メモとして:

vim/ftplugin/python.vim などで以下のような設定をしているのに、いざ.pyファイルを開いてみると反映されてないとき

setlocal tabstop=4
setlocal noexpandtab

.vimrc とかに以下を追記する

let g:python_recommended_style = 0

Vim はデフォルトで PEP8 準拠な表示になるようにいろいろやってくれているらしい。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0