Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
vim-macvim-transparency | ||
======================= | ||
|
||
change MacVim's window transparency with shortcut | ||
Change MacVim's window transparency throgh keymap. | ||
To use transparency, **enable 'CoreText’ rendering** feature on configuration preference. | ||
|
||
![Movie](https://github.com/t9md/t9md/blob/master/img/vim-macvim-transparency.gif?raw=true) | ||
[See Help](https://github.com/t9md/vim-macvim-transparency/blob/master/doc/macvim_transparency.txt) | ||
|
||
## config example | ||
This plugin don't set default keymap. | ||
Need to configure explicitly in your `.vimrc`. | ||
|
||
let g:macvim_transparency_step = 10 | ||
let g:macvim_transparency_roller = [0, 50, 100] | ||
|
||
" transparent | ||
nmap <D-Up> <Plug>(macvim-transparency-inc) | ||
" opaque | ||
nmap <D-Down> <Plug>(macvim-transparency-dec) | ||
" roll from | ||
nmap <F10> <Plug>(macvim-transparency-roll) | ||
|
||
imap <D-Up> <Plug>(macvim-transparency-inc) | ||
imap <D-Down> <Plug>(macvim-transparency-dec) | ||
imap <F10> <Plug>(macvim-transparency-roll) | ||
|
||
xmap <D-Up> <Plug>(macvim-transparency-inc) | ||
xmap <D-Down> <Plug>(macvim-transparency-dec) | ||
xmap <F10> <Plug>(macvim-transparency-roll) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
desc "zip" | ||
task :zip do | ||
version = File.read("VERSION").chomp | ||
dirname = File.basename( File.dirname(File.expand_path(__FILE__))) | ||
zipname = "#{dirname}-#{version}.zip" | ||
sh "zip -r #{zipname} README.md autoload doc plugin -x doc/tags" | ||
end | ||
|
||
desc "versub" | ||
task :versub do | ||
version = File.read("VERSION").chomp | ||
files = Dir.glob('{doc,autoload,plugin}/**').select do |f| | ||
File.file? f | ||
end | ||
files.delete('doc/tags') | ||
files.each do |fname| | ||
lines = File.readlines(fname) | ||
lines.map! { |l| l.sub(/Version: (.*)/, "Version: #{version}") } | ||
File.open(fname,'w') {|f| f.puts lines } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0 |