Vim - alignment function arguments

At work, we follow this style convention to align the arguments of a python function:

result = really_quite_extremely_long_funtion_name(first_argument,
                                                  second_argument)

      

I often find myself typing this second argument, realizing that it will overflow 80 characters by pressing Enter and then holding down a space until everything aligns. Is there a better way?

+3


source to share


1 answer


There is a Ygdrasil post here that will do what you need by editing .vim/indent/python.vim

. Also this is answered earlier by fooobar.com/questions/436629 / ...



+2


source







All Articles