New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alignment with tabs #613
Comments
Ok, so you would be happy if I added an option to disable the alignment of ampersands? That is a trivial update. I could add Mixing tabs and spaces is something I don't want to touch. It seems hard! But adding an option is something I can definately consider. |
Yes. Often I don't want the alignment anyways because it takes away too much screen space. You probably can't please everyone with tabs and spaces anyways, but this bit of configurability would help a lot. |
I would also welcome this. |
Ok, I just read this once more. I think the problem here is that I personally use I'll add an option to disable alignment on ampersands in not too long. |
Thanks, works for me! |
Great :) |
Issue
When using tabs (
noexpandtab
), vimtex adds additional alignment after an ampersand when inserting opening braces. For example:Aligns to this after Inserting
{
:How often this happens depends on the number of characters until the ampersand in the first line. For example, here there are 7
a
s, 1 whitespace and the&
. That results in one additional indent when a{
is typed (more{
s won't do anything). Any aditional character will result in one more ident, for example using 8a
s:Expected
I'd prefer to use tabs for indentation, spaces for alignment so ideally it should format to (TTTT = 1 Tab, _ = 1 Space)
But that is probably hard to implement, so no alignment at all would also be good. I don't want to disable it using
vimtex-indent
, because I'd like to keep the normal indentation.Reproduce
Using this vimrc with vim-plug (technically
set list
isn't needed, but it helps):And this tex file:
Type
{
after the second ampersand.The text was updated successfully, but these errors were encountered: