Reputation: 785
Starting up vim and then No mapping found shows up at bottom.
running the command: vim -V20logfile
line 3: redir => res
line 4: silent! execute a:cmd
line 5: redir END
line 6: let &verbosefile = oldverbosefile
Upvotes: 11
Views: 12973
Reputation: 6120
I found the best way to debug your .vimrc is to enable the debug and pip it to a log file. Examine the file and search for the error. If the error you are receiving is " no mapping found", open the log file and search for the these words. :/no mapping found.
It will show you where the error is coming from. In my case I found that the error is from a plugin I installed. I disabled it and it works fine again.
Run the following command at the prompt:
vim -V20 2>&1 | tee logfile
Upvotes: 13
Reputation: 211
I had the same issue.
I commented out all maps, thinking they were all fine. Sure enough, vim loaded without err.
Then, I reintroduced the mappings until one broke it. Sure enough I had left out the space between the lhs and the rhs. As soon as I corrected this, it worked perfectly again.
Upvotes: 21