I have set autoindentation, but vim somehow ignores it because
:set autoindent? says
noautoindent however the last file to have set autoindent is really my vimrc file according to
:verbose set autoindent?
noautoindent Last set from ~/myScripts/.vim/vimrc line 10
set autoindent is really in my vimrc file :
$ grep -n autoindent ~/myScripts/.vim/vimrc 10:set autoindent
EDIT0 : Lines between 9 and 11 of my
~/myScripts/.vim/vimrc file :
$ sed -n 9,11p ~/myScripts/.vim/vimrc set nohls set autoindent set noexpandtab tabstop=4 shiftwidth=4
~/.vim/vimrc is pointing to my
$ readlink -f ~/.vim/vimrc /home/sebastien/myScripts/.vim/vimrc
EDIT2: Thanks to filbranden, it seems that
autoindent are mutually exclusive :
The 'autoindent' option is reset when the 'paste' option is set and restored when 'paste' is reset.
Here's what I had in my
$ egrep -n "^set ((no)?autoindent|(no)?paste)" ~/myScripts/.vim/vimrc 10:set autoindent 67:set paste
\!or something like that?
:set paste?enabled! Do
:set nopasteand that should restore autoindent to its original state!