vim - Is there any way to autoindent a section of text in vimscript? -
i'd autoindent range of lines in vim plugin i'm writing, there doesn't seem easy way. short of actual vimscript command, i've been looking ex-mode commands use trigger autoindenting, haven't found way there either.
is there way trigger autoindentation of range of lines in vim, besides hitting hitting "="?
why can't use =?
:normal! 3g=10g
to auto-indent 3,10 lines
Comments
Post a Comment