skip to main
|
skip to sidebar
Developer Resource
Topics for professional software engineers
Wednesday, November 19, 2008
VIM formatting
To auto format a section of code in vim use '=' followed by a movement command.
For example if you want to format
void foo() {
int blah;
int foo;
int bar;
}
Navigate the the first '{' and press '=%' = will tell it format, where '%' will tell it to go to the corresponding block.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search
Related Sites
Blog Archive
►
2011
(3)
►
January
(3)
►
2010
(10)
►
December
(9)
►
February
(1)
►
2009
(23)
►
October
(1)
►
September
(1)
►
August
(6)
►
July
(1)
►
June
(1)
►
April
(3)
►
March
(2)
►
February
(2)
►
January
(6)
▼
2008
(71)
▼
November
(1)
VIM formatting
►
September
(16)
►
August
(3)
►
July
(13)
►
June
(38)
No comments:
Post a Comment