Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
t9md committed Oct 26, 2013
1 parent 4377a8c commit f3777d2
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
@@ -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)
21 changes: 21 additions & 0 deletions Rakefile
@@ -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
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
1.0

0 comments on commit f3777d2

Please sign in to comment.