John Nowak successfully answered Adam Thorsen's question:

I would like to know how to user auto-indent in VIM. Can someone please give me a tutorial?

People succeed in answering Adam Thorsen's questions 47% of the time (24 successes in 51 attempts).

Answers by: Dane Summers | John Nowak

John Nowak's Answer:

Chat Conversation 846 days ago

in the .vimrc file in your home directory (make it if it doesn't exist): John Nowak at 10:43 PM on Tuesday June 13th, 2006
set tabstop=4 John Nowak at 10:43 PM on Tuesday June 13th, 2006
set shiftwidth=4 John Nowak at 10:43 PM on Tuesday June 13th, 2006
set smarttab John Nowak at 10:43 PM on Tuesday June 13th, 2006
set autoindent John Nowak at 10:43 PM on Tuesday June 13th, 2006
set smartindent John Nowak at 10:44 PM on Tuesday June 13th, 2006
you can change the number 4 to whatever you wish... i use 3 personally John Nowak at 10:44 PM on Tuesday June 13th, 2006
some people like to do :set softtabstop 4 as well John Nowak at 10:45 PM on Tuesday June 13th, 2006
in vim, press escape and type :help softtabstop <enter> for more info John Nowak at 10:45 PM on Tuesday June 13th, 2006