Closed Subbeh closed 2 years ago
https://github.com/junegunn/vim-plug#usage
That's probably because plug#end() enables indent setting for filetype plugins. You can disable it as described in the section.
Adding the filetype indent off
option or running it in vim unfortunately doesn't help. The only way I seem to be able to fix it is by either removing plugged entirely or running set indentkeys-=0#
inside a vim instance (doesn't work in vimrc)
Check the output of :scriptnames
to see the list of plugin directories loaded. Vim will not load any of the plugins under plugged
if there's no Plug
statements.
Check the output of
:scriptnames
to see the list of plugin directories loaded. Vim will not load any of the plugins underplugged
if there's noPlug
statements.
These files are loaded additionally with just the call function and filetype indent off
enabled (no plugins) compared to the plugged plugin removed completely from the vimrc file:
~/.dotfiles/vim/.config/vim/autoload/plug.vim /usr/share/vim/vim90/ftoff.vim /usr/share/vim/vim90/ftplugin.vim /usr/share/vim/vim90/ftplugin/yaml.vim /usr/share/vim/vim90/indent.vim /usr/share/vim/vim90/indent/yaml.vim
(the same yaml file is opened in both instances)
Sorry, I think I had the filetype indent off
at the wrong place. I disabled the plugins and it looks like it's working now.
Plugins are not fully disabled after commenting them out or even removing them from my vimrc file.
I have been busy debugging an issue where auto-indent is not working correctly and is caused by one of the plugins that is loaded.
After removing each of the plugins from between the
call plug*
lines, the issue persists. Only after removing the entire plugin section, including thecall plug*
lines is the indenting issue gone.vim config here