Xiaotian Guo
Xiaotian Guo

Reputation: 1645

how to debug vim config (.vimrc)

I have a line

set cpoptions+=$  "add the '$' sign as change command indicator

in my .vimrc file, however after vim is started

set cpoptions? 

shows the '$' option isn't set. if I type :set cpoptions+=$ manually in vim everything works fine.

I suspect during the vim initialization, after the line in my .vimrc file gets executed, the option somehow gets reset(could be a plugin).

my question is, does vim provide command/tool to debug issues like this?

I am using vim on Mac OS X (NOT MacVim).

Thanks!

-Xiaotian

Upvotes: 6

Views: 1835

Answers (1)

Laurence Gonsalves
Laurence Gonsalves

Reputation: 143144

:verbose set cpoptions?

will tell you where it was last set.

Upvotes: 11

Related Questions