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

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -