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:
andrew@andrew$ vim -V9vim.log myfile
This will then create a logfile called vim.log in the current working directory.
Based in Staffordshire, UK