jedi-vim and YCM python indentation

ε祈祈猫儿з 提交于 2019-12-11 23:14:56

问题


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



来源:https://stackoverflow.com/questions/26538951/jedi-vim-and-ycm-python-indentation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!