junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

Making vim fullscreen and back to window hides buffer. #4

Closed ghost closed 10 years ago

ghost commented 10 years ago

Steps to reproduce:

  1. Open vim in windowed-mode
  2. Execute :Goyo
  3. Make vim fullscreen
  4. Make vim windowed

After fullscreen, the buffer is aligned left and when vim is returned to window, the buffer stays outside the screen.

This happens in both gvim and vim (with urxvt). VimResized-event works as expected.

ghost commented 10 years ago

I feel like an idiot.. It just centers the "view" to right and I can get back with 0. I wonder if it is because my other plugins or autocommands.

junegunn commented 10 years ago

Thanks for the report. I've just tested it on GVim on OSX, but couldn't reproduce the problem. I'll try to test it on other platforms when I get a chance. (By the way, please update the plugin. While testing it on GVim, I ran into a couple of problems and fixed them)

nopixl commented 10 years ago
  1. Make vim fullscreen

I used this patch to make gvim fullscreen on windows. and i just remap trigger in .vimrc to something like F11.

junegunn commented 10 years ago

@baabelfish Possibly related: #6