On Tue, Oct 20, 2009 at 10:16 PM, Christian Brabandt <[email protected]> wrote:
>
> On Tue, October 20, 2009 2:06 pm, Steven Woody wrote:
>> I've been using gvim in Windows.  I am just wondering if there is a
>> solution that can make my gvim transparent to my desktop background or
>> simply have a background picture.  We get this feature when we are
>> using rxvt in Linux.  I hope I can still have the similar function in
>> Windows + Gvim.
>
> Using VimTweak¹ you can. I have something like this in my .vimrc:
>
> func! ToggleDarkroom()
> " You need the darkroom colorscheme from
> http://www.vim.org/scripts/script.php?script_id=2246

I hesitate to use the colorscheme because it claims that I have to use
':qa' to quit the gvim.

> " and you need vimtweak.dll from
> http://www.vim.org/scripts/script.php?script_id=687
>    if !exists("g:darkroom")
>        let g:darkroom=1
>        let s:o_lbr=&lbr
>        let s:o_wrap=&wrap
>        let s:o_colors = exists("g:colors_name") ? g:colors_name : "default"
>    else
>        let g:darkroom = 1 - g:darkroom
>    endif
>    if (g:darkroom)
>        let &go=""
>        set lbr wrap stal&
>        call libcallnr("vimtweak.dll", "SetAlpha", 210)
>        call libcallnr("vimtweak.dll", "EnableMaximize", 1)
>        call libcallnr("vimtweak.dll", "EnableCaption", 0)
>        call libcallnr("vimtweak.dll", "EnableTopMost", 1)
>        colorscheme darkroom
>    else
>        let &lbr=s:o_lbr
>        let &wrap=s:o_wrap
>        exe "colorscheme ".s:o_colors
>        set go& stal&
>        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
> endfu
>
> nmap <F11> :call  ToggleDarkroom()<CR>
>
> I think someone posted this or a slightly similar version to this list.
>
> Another approach would be to use the rxvt from the Cygwin package, which
> can be switched to a transparent mode, IIRC. I used to do this, until I
> started using Gvim in Windows, which is a more comfortable.
>
>
> ¹)http://www.vim.org/scripts/script.php?script_id=687
>
> regards,
> Christian
> --
> :wq
>
>
> >
>



-- 
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 ([email protected])

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

Reply via email to