Auto-indent spaces with C in vim?
Posted
by zxcv
on Stack Overflow
See other posts from Stack Overflow
or by zxcv
Published on 2008-09-18T22:36:57Z
Indexed on
2010/04/17
7:13 UTC
Read the original article
Hit count: 352
I've been somewhat spoiled using Eclipse and java. I started using vim to do C coding in a linux environment, is there a way to have vim automatically do the proper spacing for blocks?
So after typing a { the next line will have 2 spaces indented in, and a return on that line will keep it at the same indentation, and a } will shift back 2 spaces?
© Stack Overflow or respective owner