Ⅰ. 插件描述
bring alpha, topmost, maximize, fullscreen window support for gvimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zhmars/gvimtweak'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zhmars/gvimtweak'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zhmars/gvimtweak'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zhmars/gvimtweak
Ⅳ. 文档说明
# gvimtweak
gvimtweak is a simple plugin to bring alpha, topmost, maximize, fullscreen window support for gvim.
It is a fork of vim-scripts/VimTweak
and vim-scripts/gvimfullscreen_win32
and ianwjhalliday/gvimfullscreen_win32.
The reason I create this plugin is I want all features of them and without too much config.
Supported platforms:
- Windows 32/64bit (Compiled by Visual Studio 2015)
Install
Manual Install
- Clone this repo
- Copy
lib/*andplugin/*files to your 'runtimepath'
directory (see:help runtimepath).
Vim-Plug
If you use vim-plug, you can update automatically.
if has('win32') || has('win64')
Plug 'zhmars/gvimtweak'
endifBuilding(Optional)
cd lib && nmake && nmake cleanPreview

Configuration Examples
" alpha value (180 ~ 255) default: 245
let g:gvimtweak#window_alpha=240
" enable alpha at startup
let g:gvimtweak#enable_alpha_at_startup=1
" enable topmost at startup
let g:gvimtweak#enable_topmost_at_startup=0
" enable maximize at startup
let g:gvimtweak#enable_maximize_at_startup=0
" enable fullscreen at startup
let g:gvimtweak#enable_fullscreen_at_startup=0
" nnoremap<silent> <A-k> :GvimTweakSetAlpha 10<CR>
" nnoremap<silent> <A-j> :GvimTweakSetAlpha -10<CR>
" nnoremap<silent> <A-t> :GvimTweakToggleTopMost<CR>
" nnoremap<silent> <A-m> :GvimTweakToggleMaximize<CR>
" nnoremap<silent> <A-f> :GvimTweakToggleFullScreen<CR>
nnoremap<silent> <F11> :GvimTweakToggleFullScreen<CR>