9

I am using YCM plugin for Vim. And sometimes error messages are too long and I do not see them whole (see Fig.). enter image description here So how to expand (temporarly) the status bar in Vim or there is another way to see full message?

  • 3
    Do they show up in :messages? – muru Oct 5 '17 at 5:33
  • I ran into the same sort of issue as you a bit back and I remember that Valloric actually said you can't do that (or at least not from their end). Don't know if you can redirect it somewhere so you can read it though – ljden Oct 5 '17 at 10:54
  • @muru, Seems they are not in messages. – paraxod Oct 5 '17 at 11:55
12

From the YCM documentation.

YCM will display a short diagnostic message when you move your cursor to the line with the error. You can get a detailed diagnostic message with the <leader>d key mapping (can be changed in the options) YCM provides when your cursor is on the line with the diagnostic.

You can also see the full diagnostic message for all the diagnostics in the current file in Vim's locationlist, which can be opened with the :lopen and :lclose commands (make sure you have set let g:ycm_always_populate_location_list = 1 in your vimrc). A good way to toggle the display of the locationlist with a single key mapping is provided by another (very small) Vim plugin called ListToggle (which also makes it possible to change the height of the locationlist window), also written by yours truly.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.