Closed suuuehgi closed 4 years ago
YCM doesn't touch your shiftwidth
. Check the output of :verbose set sw
to see from where did it get set.
Thanks a lot - It was a pain for months! I didn't know that command.
:verbose set sw
shiftwidth=4
Last set from /usr/share/vim/vim81/ftplugin/python.vim line 118
So, for anyone else stumbling about this, it's hardcoded in:
/usr/share/vim/vim81/ftplugin/python.vim line:118
if !exists("g:python_recommended_style") || g:python_recommended_style != 0
" As suggested by PEP8.
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
endif
Solution: Add let g:python_recommended_style = 0
to the .vimrc
.
Issue Prelude
vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.install.py
(orcmake
/make
/ninja
) including its invocationIssue Details
Add command to last line of .vimrc:
Obey the
.vimrc
.See above.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Contents of YCM, ycmd and completion engine logfiles
ycmd_55431_stdout_b6p_z322.log
ycmd_55431_stderr_78ma0l7h.log
ycm_2ig4y8h8.log
OS version, distribution, etc.
Linux hostname 5.4.3-arch1-1 #1 SMP PREEMPT Fri, 13 Dec 2019 09:39:02 +0000 x86_64 GNU/Linux