On 11/17/06, Mike Hansen <[EMAIL PROTECTED]> wrote: > > Here's what I'm doing. Not sure if it's that helpful to you. > > I use the mini-buffer explorer plug-in and the taglist plugin. > > set smartindent > > " shuts off the annoying "#" comment in smartindent to jump to col 1 > inoremap # X<c-h># > > autocmd BufRead *.py set smartindent > cinwords=if,elif,else,for,while,try,except,finally,def,class >
Instead of using smartindent + cinwords + the inoremap hack, simply use "filetype indent on". This was recommended to me on #Vim IRC channel. This takes care of the silly # problem with smartindent and is considered the best way for getting proper indentation in Python. Give it a try! Chris _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor