Debugging your vimrc

August 12, 2011

Image for Debugging your vimrc from unsplash.com

I made some changes to my ~/.vimrc file that didn't seem to work and so I needed to see what was happening when vim loaded my ~/.vimrc file.

To do this you need to tell vim to log it's output to a logfile:

[email protected]$ vim -V9vim.log myfile

This will then create a logfile called vim.log in the current working directory.