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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -