Ⅰ. 插件描述
fork from https://www.vim.org/scripts/script.php?script_id=687 and add a function to toggle transparencyⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'conanforever22/vimtweak-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'conanforever22/vimtweak-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'conanforever22/vimtweak-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/conanforever22/vimtweak
Ⅳ. 文档说明
# Why creating this Repo
- To add a feature to enable transparent background in gVim in Windows 10 like XShell using Alt + R
By what means
- using the feature supported by vimtweak.dll on vim.org
How to use
- copy vimtweak.dll to _gvim.exe_'s path
- copy vimtweak.vim to $VIM/vimfiles/plugin OR using Vundle to install it using my repo's url.
add a shortcut like below to toggle it
" toggle transparent background in gVIM noremap <A-r> :call vimtweak#ToggleVimTweakSetParam()<cr>
NOTE
- make sure vimtweak.dll is in the same folder with gvim.exe
- put encoding and fileencodings before the key map setting, or Alt key can not be mapped.