rzyns / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Lion fullscreen messes up background in "Writeroom" mode. #364

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Configure latest MacVim with Lion support to limit the number of columns and 
lines, then set fullscreen and configure the fullscreen background to the same 
color as the background:

      set lines=50 columns=80
      set fuoptions=background:#00002b36
      hi NonText guifg=bg      
      set fullscreen

What is the expected output? What do you see instead?
I expect to see the entire screen filled with the same color and the text 
centered to the screen like WriteRoom editor. Screenshot in this website: 
http://mutelight.org/articles/vim-is-writeroom-level-2
What happens is that with the new Lion fullscreen mode, I see the Apple 
background (the grey chalk like).

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 10.5.6
Intel")?

The latest snapshot (61) for Lion has this problem. I switched back to 
MacVim-7_3-53 and it works perfectly.

Please provide any additional information below.

Original issue reported on code.google.com by carlos...@gmail.com on 30 Aug 2011 at 10:44

GoogleCodeExporter commented 9 years ago
I just found out on Issue 361 that using:

    defaults write org.vim.MacVim MMNativeFullScreen 

Disables the Lion fullscreen mode for MacVim and fixes the problem. Maybe this 
could be switchable on MacVim itself.

Original comment by carlos...@gmail.com on 30 Aug 2011 at 10:48

GoogleCodeExporter commented 9 years ago
That's a workaround, but there's no reason that the linen background should be 
visible in Lion native fullscreen mode either; I think this is a legit bug.  
After all, most other apps that do native fullscreen properly take up the 
entire screen.

Original comment by Glyph.Lefkowitz on 30 Aug 2011 at 4:11

GoogleCodeExporter commented 9 years ago
That's exacly what happens. If I "set fullscren" and then "set colums=80" for 
example, it resizes the VIM window back to 80 columns and replace the 
background with Lion's bg (linen) even setting the fuoptions:background flag. 

Original comment by carlos...@gmail.com on 30 Aug 2011 at 5:23

GoogleCodeExporter commented 9 years ago
The native full-screen does not yet support the 'background' flag of 'fuopt'.  
It is a known issue [1].

[1] https://github.com/b4winckler/macvim/wiki/ChangeLog

Original comment by bjorn.winckler@gmail.com on 30 Aug 2011 at 6:36