indent keywords or a specific selection of lines in vim -


How do you make a specific selection of lines in VIM, for example line 1, 5 and 6

Apart from this, there is a way of starting lines with a certain keyword, for example search for all words starting with def and indent it.

Thanks

for indent line 7

 < Code>: 7> gt; & Gt;   

To indent the range of lines 3-5 (Indent lines 3,4 and 5)

 : 3,5> gt; & Gt; Use global order for def and indented  all  matches:  
 : g / def /> & gt; & Gt;    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -