Hot answers tagged

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 ...


4

:help :cdo explains that the command actually is comprised of several subcommands: It works like doing this: :cfirst :{cmd} :cnext :{cmd} etc. The "truncation" you observe are the file open messages of any new files from the quickfix list; these compete with the :print command for the (limited) output ...


3

Not really what you want but you can still redirect messages to a split with such a command: :redir @">|silent messages|redir END|split|put Just map it to a shortcut that suits you.


3

It is not completely true that vim uses the beeps (or bells, as it calls them) only in errors. There are many events that can trigger the bells, only some of them are errors. You can custom the bell to ring only in errors (or whenever you want), by setting the value of 'belloff'. All the error messages should be shown when they are happening, other things ...


2

So the issue wasn't guioptions, it was guiheadroom; I finally noticed this because while I keep my config files synced, the stub ~/.vimrc which sources them isn't, to accomodate local settings. One of which, on another system where I do not have the problem, is: set guiheadroom=0 I added this here, restarted gvim and problem solved. From :help guiheadroom:...


2

From :help :!: A '|' in {cmd} is passed to the shell, you cannot use it to append a Vim command. See :bar. An alternative would be to use the system() function, like so: :call system('pbcopy', getline(1, '$')) The second argument is the stdin; in this case all all lines (like the % range). In a mapping, it might look like: nnoremap <localleader>...


1

You can use :h :verbose to do this. Assume we use a Less command to capture vim output, we can see what set filetype really do like this: Less 20verbose set filetype=cpp The 20 is used to specify 'verbose' for the sub command. The Less command: com -nargs=+ -complete=command Less call <sid>less(<q-args>, <q-mods>) function s:less(cmd, ...


1

as suggested by Carpetsmoker in comments, here is how I solved this: set shortmess+=F


Only top voted, non community-wiki answers of a minimum length are eligible