I would like to automatically align lines of python variable assignments in vim.
For example I would like to change this:
a = 1
banana = 2
into this
a = 1
banana = 2
automatically in vim.
Is there a way to do this?
You are probably looking for the Align plugin for vim:
http://www.vim.org/scripts/script.php?script_id=294
Once installed, you simply select the text you want to align (Shift V) and type:
:Align =
This will align the text based on the = character, so you can use anything you want really.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With