Thanks StarWing for introducing the professional way of my qick and dirty solution. I actually added later 2 lines to store the current gui options and curretn coloreschem in an environment variable, but didn't post it again. Your way of using a function has the advantage that you can use global viables.
An unpleasant effect of using vimtweak.dll is that it is slow. I wonder if someone knows a way, how we can do this "fullscreening" smoothly, without all these flutters of windows! On Feb 3, 9:45 pm, StarWing <[email protected]> wrote: > i had add something in my vimrc: > " s:dark_room {{{3 > > function! s:dark_room() > if !exists('g:go_save') > let g:go_save = &go > " call libcallnr("vimtweak.dll", "SetAlpha", 210) > set go& go-=m go-=T go-=r stal& > call libcallnr("vimtweak.dll", "EnableMaximize", 1) > call libcallnr("vimtweak.dll", "EnableCaption", 0) > call libcallnr("vimtweak.dll", "EnableTopMost", 1) > else > let &go = g:go_save > unlet g:go_save > " call libcallnr("vimtweak.dll", "SetAlpha", 255) > call libcallnr("vimtweak.dll", "EnableMaximize", 0) > call libcallnr("vimtweak.dll", "EnableCaption", 1) > call libcallnr("vimtweak.dll", "EnableTopMost", 0) > endif > endfunction > > " }}}3 > > command!Darkroomcall s:dark_room() > > and it works well :) > > On 2月3日, 下午6时05分, Marc Weber <[email protected]> wrote: > > > > > Hi Mubed > > > if it happens to you using vista one day install niftywindows. It can change > > transparency and has a lot more useful features. > > > On XP it only supports making one color transparent which is probably > > not what you want.. > > > Sincerly > > Marc Weber- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
