Sometimes Vim puts two or more indents where I expect it to be just a single indent. For example when cursor is here (python code):
a = [█
and I press enter, the result is such:
a = [
█
Whereas i expect it to be here:
a = [
█
My vimrc at its least:
filetype plugin indent on
set autoindent
set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
How to make vim indent as I expect? I've found nothing useful on the web so I thought it to be more appropriate to ask here.