See where vim settings came from

Published: 2022-03-15

Categories:
vim


Ever wonder which plugin or config in vim is responsible for setting something like tabs to represent as four spaces? (e.g. ts=4)

Wonder no more! vim will tell you! The magic is the verbose keyword in the setting query

:verbose set ts?
  tabstop=2
        Last set from ~/.vimrc line 86:
:verbose set ts?
  tabstop=2
        Last set from ~/.vim/ftplugin/go.vim line 1