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
The global or system-wide vim configuration file is generally located under the /etc/vim/vimrc . This configuration file is applied to all users and when Vim is started this configuration file is read and Vim is configured according to this file contents.
Vim's user-specific configuration file is located in the home directory: ~/. vimrc , and Vim files of current user are located inside ~/. vim/ . The global configuration file is located at /etc/vimrc .
Opening vimrc Using file name completion, you could type :e $M then press Tab until you see the desired variable. If you only want to see the path, type :echo $M then press Tab to see the variable, and press Enter. In gvim, the Edit menu includes "Startup Settings" which will use $MYVIMRC to edit your vimrc file.
:verbose set cpoptions?
will tell you where it was last set.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With