Closed
Description
Hello @hynek,
Unfortunately, your plugin does not work in my recent vim8 setup anymore.
Here is a minimal example:
def f(x,
y):
""" scriptnames:
[...]
114: /usr/share/vim/vim80/indent/python.vim
115: ~/git/veight/vim/pack/extra/start/vim-python-pep8-indent/indent/python.vim [...]
>>> set smartindent?
nosmartindent
"""
d = {"k1": 1,
"k2": 2
}
return d
# vim: set ts=8 sts sw=4 sts:
It is installed with vim's native packaging system, located in ~/.vim/pack/*/start
After some investigation, I found out that vims native indent/python.vim gets sourced before the indent file of this plugin (because of vim8s +packages
) and sets b:did_indent
. I fixed it by changing the guard to b:did_pep8_indent
. I know that this fix is somewhat violating vim conventions but for now, it works for me. Could you think of a cleaner solution to integrate in vim8 packages system?
Best Regards,
lgalke
Metadata
Metadata
Assignees
Labels
No labels