2009/4/14 Skammer <[email protected]>:
>
> I wonder if there is a way to toggle tabs to ASCII-view when I switch
> to fullscreen mode, and then toggle them back to gui-mode when I quit
> fullscreen mode.
> I've tried to map <S-D-F>, but it doesn't seem to work.

To turn off GUI tabs

:set go-=e

See ":h 'go" for more info.

To bind the "Toggle Full Screen Mode" menu entry to something else, use:

:an <silent> Window.Toggle\ Full\ Screen\ Mode  :MyToggleFullScreen<CR>

where you would have to define your own command "MyToggleFullScreen".
For example:

command MyToggleFullScreen if &fu|set go+=e|set nofu|else|set go-=e|set fu|endif

This defines a command called "MyToggleFullScreen" which checks if
full-screen is enabled "if &fu" then toggles the "e" flag in
'guioptions' accordingly and enters/exists full-screen using ":set
fu"/":set nofu" (see ":h :command", ":h 'go", ":h 'fu").

All you have to do then is to modify the above command to include the
settings you want to toggle when switching between full-screen and
windowed mode (e.g. I like to turn off scrollbars in full-screen,
using ":set go-=r").  You should also check out ":h 'fuopt".


Björn

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to