Assuming I have the following Hash options as a method argument in Ruby 1.9.x:
my_method :arg1, some_option: "value 1" some_other_option:true option_three: 123
Using the Tabular VIM plugin, what will the regex be for the Hash parameters to align like this:
my_method :arg1, some_option: "value 1" some_other_option: true option_three: 123
: must remain attached to the key, unlike, for example, JSON.
Perhaps a more attractive style will look that way that looks more aligned:
my_method :arg1, some_option: "value 1" some_other_option: true option_three: 123
Does anyone happen to know how to do one of these alignments using Tabular?
Thanks!
Michael van Rooijen
source share