junegunn / vim-easy-align

:sunflower: A Vim alignment plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Align Fails in python triple quotes

rickalex21 opened this issue · comments

I use triple quotes for documentation in python projects but align gaip= does not work inside of them.

test.py

"""
Don't work

foo = 'short var'
long_var_name = 'This is a long var'

"""
#works outside
foo           = 'short var'
long_var_name = 'This is a long var'

Also, how to I align on tabs/whitespace? I have tried gaip *\t andRegular expression:\t. I could just hit tab 3 times to align this.

Algin me:	Two tabs were inserted before this sentence.
	One tab was inserted here.
	Another sentence here.

Expected result

Algin me: 	 Two tabs were inserted before this sentence.
		 One tab was inserted here.
		 Another sentence here.

Thanks for all the awesome projects.

I have the same issue in Nix multiline strings

''
doesn't work here
''