Hot answers tagged

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.


2

One dumb solution I find is to type :!clear in vim, but this is just a temporary solution. I am yet to find a better solution. Are you able to fix your issue?


2

This is by design. The :help :! (a closely related command) offers this: Vim redraws the screen after the command is finished, because it may have printed any text. This requires a hit-enter prompt, so that you can read any messages. To avoid this use: :silent !{cmd} The screen is not redrawn then, thus ...


2

As @Christian Brabandt pointed out in the comment this is a known issue and there might not be a lot of solutions, for now, to make cursorline work properly. However, you can use different workarounds: In this answer @Carpetsmoker suggest a mapping which will set cursorline and cursorcolumn for a fraction of a second. This is pretty useful to easily locate ...


1

Try this autocmd: augroup my_cmdline_window au! au CmdWinEnter * nno <buffer><expr><nowait> <c-c> '<c-c>'.timer_start(0, {-> execute('redraw')})[-1] augroup END The timer is necessary to delay :redraw. Without it, :redraw would be executed before C-c is pressed, that is before the command line window is left, ...


1

one workaround is to write an tempfile with the command(s) in them. Then send a command to source this file. like in > vim --server "<servername>" --remote-send "so /path/to/tempfile"


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