Quantcast
Channel: Open Data - text editor
Viewing all articles
Browse latest Browse all 12

Indent lines in Vim

$
0
0

To indent a set of eight lines in vim, from the first one, in normal (esc) mode:

8>>

To indent a curly braces block, go to a curly brace and:

>%

To mark and indent (using 'm' as the marking letter, the first m is the marking command):

Enter mm at the top of block to indent, go down to the end of what needs to be indented, and type >'m

Searched words: 
vim shift vi indent vim shift forward move all lines in a space

Viewing all articles
Browse latest Browse all 12

Trending Articles