gvim 全屏f11
Posted 红桃xin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gvim 全屏f11相关的知识,希望对你有一定的参考价值。
下载
https://github.com/derekmcloughlin/gvimfullscreen_win32
https://github.com/mattn/vimtweak
配置
- 放到gvim根目录
- 64位用64位的
// 全屏设置
:call libcallnr("gvimfullscreen_64.dll", "ToggleFullScreen", 0)
map <F11> <Esc>:call libcallnr("gvimfullscreen_64.dll", "ToggleFullScreen", 0)<CR>
// 透明度设置
call libcallnr("vimtweak64.dll", "SetAlpha", 255)
合成配置
function Fullscreen()
silent exec libcallnr("gvimfullscreen_64.dll", "ToggleFullScreen", 0)
silent exec libcallnr("vimtweak64.dll", "SetAlpha", 220)
silent exec libcallnr("vimtweak64.dll", "EnableTopMost", 1)
endfunction
function DisFullscreen()
silent exec libcallnr("gvimfullscreen_64.dll", "ToggleFullScreen", 0)
silent exec libcallnr("vimtweak64.dll", "SetAlpha", 255)
silent exec libcallnr("vimtweak64.dll", "EnableTopMost", 0)
endfunction
map <F11> <Esc>:call Fullscreen()<CR>
map <F10> <Esc>:call DisFullscreen()<CR>
以上是关于gvim 全屏f11的主要内容,如果未能解决你的问题,请参考以下文章