Tab setting in vim editor!!!
Hi all,
I am a newbie to the vi editor. I use vi to write AWK progs and perl scripts. I am facing a problem of indentation. When I press enter after writing a line, the cursor is going back to the start of the line. But i want the cursor to be placed at bottom of the above lines beginning, i.e., if I typed some code from 16th column the next line should start from 16th column only, unless i change the indentation. |
Hi,
Did you try activating autoindent (ai)? You can try it by issueing the following command in command mode: set ai (set noai to deactivate). If this is what you want/need you can put it in your vimrc (global or local). The full name can also be used. I.e. set autoindent. Hope this helps. |
|
If you create a file, .exrc, in your home directory with this content
Code:
set autoindent showmode showmatch |
Thank you all...
|
All times are GMT -5. The time now is 04:26 PM. |