I'm using YouCompleteMe vim plugin for Python dev. YCM uses jedi-vim to autocomplete python code. However, I want to configure python indentation to 2 spaces not 4 (Google Python style). How can I do this? I tried add python.vim in /ftplugin and set tabstop=2 shiftwidth=2. but it didn't work.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
this solved the problem: http://bbs.archlinux.org/viewtopic.php?id=174117 so adding an after/ftplugin/language.vim in .vim folder