I'm trying to learn vim :-) Having some real trouble with auto-indent changing the meaning of my python code. Is there any way to get the goodness of autoindent without running into behaviors like the one below?
I start with a python file:
me@host:/tmp$ cat pytest.py
if False:
print('Never',
'print this line')
print 'Always print this line.'
Auto indent with vim pytest.py, gg=G, :wq
D'oh, I messed up my script:
me@host:/tmp$ cat pytest.py
if False:
print('Never',
'print this line')
print 'Always print this line.'
Trying to keep this really vanilla:
me@host:/tmp$ cat ~/.vimrc filetype plugin on filetype indent on autocmd FileType python set sw=4 autocmd FileType python set ts=4 autocmd FileType python set sts=4 autocmd FileType python set textwidth=79
