Indentation does not work with completion
dane-unltd opened this issue · 4 comments
Maybe this is a known problem, but I did not find anything on it.
When I use omnicomplete to complete an indentation key like \item it is not properly indented.
I'm not sure I understand what you mean. You expect that \item
should be automatically indented properly after it is inserted from omnicompletion?
First: Omnicompletion in LaTeX-Box only completes references, not commands such as \item
. You're probably referring to keyword completion or similar. This is a vim feature, not a LaTeX-Box feature.
Ah, sorry, I forgot: LaTeX-Box really do support command completion through omnicomplete.
You expect that \item should be automatically indented properly after it is inserted from omnicompletion?
Yes. It is not a huge issue since it is really only relevant for \item which is not such a long word anyway, but maybe for you guys this is easy to fix.
I see. I don't think this is an issue with LaTeX-Box. I think you can get the desired feature by use of an autocommand, something like:
augroup vimrc
autocmd! " This clears the current augroup
autocmd CompleteDone *.tex norm ==
augroup END
I am not sure if that will work, in fact I think it might not. But you're welcome to try it or something similar. As I said, I don't think this is an issue that needs to be fixed. Sorry.