Home ›
Indent lines in VimIndent lines in Vim
Submitted by Benjamin Melançon on November 8, 2010 - 3:10pm
Searched words:
vim shift
vi indent
vim shift forward
move all lines in a space
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
More like this
- Vim as a PHP IDE
- Find the function definition of the current function or find uses of a given function
- Auto-expand abbreviations in Vim
- Sadly, some brilliant text had to be jettisoned from the Definitive Guide. Some of it lives here.
- Create rewrite rules from new and old URLs using the power of Vim to munge text


Comments
Post new comment