Hot answers tagged

5 votes
Accepted

redraw problem after returning from external command

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 ...
user avatar
  • 16.9k
3 votes

Vim does not redraw screen and cursorlines remain drawn

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?
user avatar
3 votes

How to let the latest message persist on redraw?

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.
user avatar
  • 373
3 votes
Accepted

How to run shell commands inside Vim like Gary Bernhardt does in his screencasts?

The video goes by quickly, but I paused it and I seem to have seen him type the following: :!chmod u+x % Which then produces this output: :!chmod u+x compiler.rb [No write since last change] "...
user avatar
  • 26.3k
2 votes
Accepted

Is it possible to update the tabline every second?

You can use a timer, which you set up with timer_start(), in order to run a callback that will invoke redrawtabline for you every second. In your specific situation: function! RedrawTabline(timerID) ...
user avatar
  • 26.3k
2 votes

Cursorline/Columnline slowdown

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 ...
user avatar
  • 46.5k
1 vote

execute command after it print junk text?

The output you're getting in your terminal that is messing up the text in Vim is likely from the running sxhkd binary that you're spawning in background. As a possible way to fix this, you can ...
user avatar
  • 26.3k
1 vote
Accepted

How to force redraw when returning to command line from command line history window?

Try this autocmd: augroup my_cmdline_window au! au CmdWinEnter * nno <buffer><expr><nowait> <c-c> '<c-c>'.timer_start(0, {-> execute('redraw')})[-1] ...
user avatar
  • 5,517
1 vote
Accepted

Vim's remote-send, without intermediate redraws?

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"
user avatar
  • 2,599

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