Saturday, October 1, 2011

Turn of auto indentation in VI editor (UNIX)

There were times when we copy a piece of code from notepad into VI editor (UNIX) and it would have done auto alignment and the entire program gone mess.

This is because the vi editor will turn the auto align by default. To turn off use the following set command

set -noai

to turn it back

set -ai

No comments:

Powered By Blogger