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 ...
  • 17.3k
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?
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.
  • 383
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] "...
  • 27.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 ...
  • 48.1k
2 votes

Prevent terminal background from leaking through

I am using the Kitty terminal, so I looked through their issues, and there is a fix for this described on this GitHub issue. The following line should be added to the .vimrc: " vim hardcodes ...
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) ...
  • 27.3k
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 ...
  • 27.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] ...
  • 5,717
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"
  • 2,699

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