Artem Vovsia
Artem Vovsia

Reputation: 1570

Vim status line is not updated immediately in Linux

I'm using Powerline but all I saying is also true for regular VIM status line. In Windows when I'm going to the paste mode(paste toggle) I immediately see this in status line - red bar with "PASTE" in it. But in Linux(Ubuntu) I need to make some moves(j, k, w, b, etc.) to see the result, before any moves - the status line is not updating. P.S. The same effect I can get in windows with using Shell.vim plugin and going to the fullscreen mode

Upvotes: 3

Views: 667

Answers (2)

Jim Stewart
Jim Stewart

Reputation: 17323

Since the link in @DaniloSousa's answer no longer works, I thought I'd add in what works for me (probably pretty close to that solution):

nnoremap <silent> <F2> :set paste!<CR>
set pastetoggle=<F2>

This will toggle paste on/off via in both normal and insert modes and immediately update the status in Powerline. I don't know if it'll work without Powerline; possibly depends on the state of showmode and/or what you've defined statuline as.

Upvotes: 2

danilopopeye
danilopopeye

Reputation: 9988

Have you tried use paste! instead of pastetoggle as Lokaltog suggests in issue #103?

Worked for me!

Upvotes: 2

Related Questions