Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So I've had this slightly annoying problem when running gvim on Ubuntu. When I enforce full-screen mode I get white bars at the bottom and right of the screen. (I'm trying to emulate the Mac-vim full screen mode)

(I would have posted an image but I'm a new user and apparently can't do that.) Edit I think this screenshot using Xephyr shows what's happening at a reasonable screen shot size:

enter image description here

Note that the screenshot only shows a 'small' bar at the right. In reality, at 3328x1152 there is a significant 'panel-like' bar at both the bottom and the right of the screen

I've found very little on Google and nothing on stackoverflow about this, but that might be because I've got the wrong search params, but from what I understand it's to do with the window manager imposing restrictions on the window. If anyone knows a workaround for this I'd greatly appreciate it, I'm using the default Ubuntu window manager.

share|improve this question

migrated from stackoverflow.com Oct 2 '11 at 14:38

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 3 down vote accepted

It looks like what you see is the default GTK background.

Follow this hint to make it the same color as your colorscheme's background. I've used it and it works beautifully.

share|improve this answer
    
That worked perfectly, thank you very much. –  user975391 Oct 2 '11 at 14:52

I usually use console vim in gnome-terminal: it supports a builtin (F11) full screen mode that doesn't have this problem.

  • I tweaked the terminal profile no hide scrollbars and menubars
  • You get font resizing on the fly (Ctrl-Shift-+ and Ctrl-Shift--)
  • This also gains me screen support
  • slightly better responsivity
  • slightly better support for shell integration (e.g. K for man pages, backgrounding using C-z

The only thing missing from this setup is the vim-style X clipboard integration, AFAICT

Update screenshot of gvim Version: 2:7.2.330-1ubuntu4 in the same Xehpyr session (running the windowmanager (compiz) and Xephyr from natty, but the 'old' vim-package as chrooted from my old Maverick setup:

enter image description here

share|improve this answer
    
Thanks for the reply- terminal fullscreen works perfectly, but I was after a solution for gvim in a regular gnome window. –  user975391 Oct 2 '11 at 14:29
    
@user975391: yeah I'm looking into it! So far it seems gvim 2:7.2.330-1ubuntu4 did not have the same issue (added screenshot) –  sehe Oct 2 '11 at 14:34
    
Actually, you can compile vim with X11 integration, so the clipboard works the same as in gvim. –  jpaugh May 1 '13 at 14:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.