You are not logged in.

#1 2011-04-04 02:05:43

monsieur moche
Member
From: France
Registered: 2009-10-14
Posts: 50

Vim: command outputs instantly disappear

Hi everyone,

When entering an ex command producing some text output (e.g. :ls), the said output instantly disappears as soon as the execution of the command finishes.
If the output is long enough (i.e. higher than the window), Vim still allows me to scroll through it (displaying "-- More --" at the bottom of the window). But once I reach the end of the output, it instantly disappears in the same fashion.

In GVim (but not in Vim), when I enter a shell command (say :!ls or :make), the same behavior occurs.

Am I the only one who's experiencing this issue?

Last edited by monsieur moche (2011-04-04 02:10:19)

Offline

#2 2011-04-04 05:04:10

Haptic
Member
Registered: 2009-09-03
Posts: 149

Re: Vim: command outputs instantly disappear

Is you're Vim up to date? I have not had a issue like that.

Offline

#3 2011-04-04 05:09:23

monsieur moche
Member
From: France
Registered: 2009-10-14
Posts: 50

Re: Vim: command outputs instantly disappear

Yes it is:

florian@flobox:~$ yaourt -Qi vim-runtime
Name           : vim-runtime
Version        : 7.3.138-1
URL            : http://www.vim.org
Licenses       : custom:vim
Groups         : None
Provides       : None
Depends On     : None
Optional Deps  : None
Required By    : gvim
Conflicts With : None
Replaces       : None
Installed Size : 25100.00 K
Packager       : Jan "heftig" Steffens <jan.steffens@gmail.com>
Architecture   : x86_64
Build Date     : Fri 18 Mar 2011 06:45:30 PM CET
Install Date   : Sun 20 Mar 2011 07:51:32 PM CET
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : Runtime for vim and gvim

florian@flobox:~$ yaourt -Qi gvim
Name           : gvim
Version        : 7.3.138-1
URL            : http://www.vim.org
Licenses       : custom:vim
Groups         : None
Provides       : vim=7.3.138-1
Depends On     : vim-runtime=7.3.138-1  gpm  perl  python2>=2.7.1  ruby  libxt
                 desktop-file-utils  gtk2
Optional Deps  : None
Required By    : vim-a  vim-minibufexpl  vim-nerdtree  vim-omnicppcomplete
                 vim-project
Conflicts With : vim
Replaces       : None
Installed Size : 2644.00 K
Packager       : Jan "heftig" Steffens <jan.steffens@gmail.com>
Architecture   : x86_64
Build Date     : Fri 18 Mar 2011 06:45:29 PM CET
Install Date   : Sun 20 Mar 2011 07:51:32 PM CET
Install Reason : Explicitly installed
Install Script : Yes
Description    : Vi Improved, a highly configurable, improved version of the vi
                 text editor (with advanced features, such as a GUI)

Offline

#4 2011-04-04 05:27:37

monsieur moche
Member
From: France
Registered: 2009-10-14
Posts: 50

Re: Vim: command outputs instantly disappear

Wait, I've just tested to run GVim after removing all my .vimrc (and related) files, and I just don't have any problem anymore.
It has even fixed another "bug" (a slightly strange behavior of the visual mode).

I'll do some tests…

Offline

#5 2011-04-04 05:50:27

monsieur moche
Member
From: France
Registered: 2009-10-14
Posts: 50

Re: Vim: command outputs instantly disappear

Okay, I've found the troublemaker.

The issue occurs when "lazyredraw" is set.
Does anyone else can confirm this?

Offline

#6 2011-04-13 03:19:00

jorges
Member
Registered: 2011-04-07
Posts: 29

Re: Vim: command outputs instantly disappear

I confirm this. I am new to arch, just installed it a few days ago, and noticed a problem when using spell (I would not get a list of suggested words, or at leat I didn't see it). Playing around with my vimrc I arrived at the same conclusion: lazyredraw cause the issue.
In Ubuntu 10.10, with exactly the same vimrc (although vim version must be different, plus, in arch I had to install gvim to get a feature I need, although I use vim from cli exclusively) all worked OK.

Jorge

EDIT: This seems to be a bug introduced recently by patch 137: https://groups.google.com/forum/#!msg/v … dGB--Cmv0J

Last edited by jorges (2011-04-13 03:29:20)

Offline

#7 2011-04-13 11:39:59

monsieur moche
Member
From: France
Registered: 2009-10-14
Posts: 50

Re: Vim: command outputs instantly disappear

Great, I won't have to file a bug report smile.

Thanks for the information, jorges.

Offline

Board footer

Powered by FluxBB