Thanks, Björn. Doing this works fine: set fuopt=maxvert But the default is maxvert so it's good as is. And it's nice to have the width in fullscreen get set to the same as whatever you set in non-fullscreen. Being able to set the width by just mouse dragging in lion is nice.
I didn't know about gfn. Cool. I'm assuming your command go inside this block: if has("gui_macvim")… When I do that, I can't go into fullscreen. When I keep them outside of that block, they don't do anything (but I can go into fullscreen). Can someone give me a pointer to vim scripting? Maybe this 5-part series: http://www.ibm.com/developerworks/linux/library/l-vim-script-1/index.html On another note, the best thing I ever did for Vim productivity was to switch my caps lock key to esc. I used this: http://pqrs.org/macosx/keyremap4macbook/extra.html Cheers, russ On Oct 24, 2011, at 7:09 AM, björn wrote: > On 24 October 2011 14:43, Giovanni Lanzani wrote: >> I did just that, comment out >> set fuoptions=maxhorz,maxvert >> however that didn't do the trick > > You need to > > set fuopt=maxvert > > See ":h 'fuopt" for more information. > > As for changing font size and number of columns when toggling > full-screen, try adding these three lines (re-join them so that they > form three lines in case they have been split when I posted them) to > your ~/.gvimrc: > > ----- 8< ---- > set fuopt=maxvert > > command! ToggleFullScreen if &fu|set gfn=Menlo:h13|set co=80|set > nofu|else|set gfn=Menlo:h18|set co=120|set fu|endif > > an <silent> Window.Toggle\ Full\ Screen\ Mode :ToggleFullScreen<CR> > ----- >8 ---- > > Note that I've had reports that changing 'co' and 'fu' at the same > time can fail so I can't guarantee that the above works. However, > I've just tested it and it works fine for me. Also note that in order > for it to work you have to enter full-screen by using the menu, or by > pressing the shortcut for the menu (which should be Cmd+Ctrl+f unless > you are using an old version of MacVim). > > Björn > > -- > You received this message from the "vim_mac" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php