I'm seeing strange behavior in my windows gvim -- it will continue to indent after a function ends, even once characters in column 0 have been entered:
def foo(k): return 42 """Still indenting""" # Comment here """Still indenting"""
Here is my vimrc:
colorscheme slate filetype plugin indent on set tabstop=2 set shiftwidth=2 set expandtab set ai set backspace=2 set backspace=indent,eol,start set cindent autocmd FileType python setlocal foldmethod=indent smartindent shiftwidth=2 ts=2 et cinwords=if,elif,else,for,while,try,except,finally,def,class
And I also have appended the python vim file found here: https://www.vim.org/scripts/download_script.php?src_id=21056
Removing autoindent/ai so that only smartindent is being used does not seem to solve the problem... any thoughts?