Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Oct 192012

Automatic code indentation using VIM


To auto indent your source code, you can use the built-in feature of vim

1. First highlight the code block using the v and arrow keys

2. Press "=" button.

That's it.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>