So many suggested to make code as auto-indent. I am using SuperPuTTy. Upto now I am using visual command to intent. I goggled & find out some commands
:set tabstop 8 - tabs are at proper location :set expandtab - don't use actual tab character (ctrl-v) :set shiftwidth=4 - indenting is 4 spaces :set autoindent - turns it on :set smartindent - does the right thing (mostly) in programs :set cindent - stricter rules for C programs
which is not working in my vi editor. Is there any particular version to support it. My version is GNU indent 2.2.11 VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 10 2014 06:55:55)
In reply to Auto indent settings in PUTTY by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |