Permalink
Browse files

link gvimrc to enable apple-t for CommandT in MacVIM

  • Loading branch information...
1 parent 72f09bf commit 9ef5dcec7b69bc8b5aba07c8ff2906950e5deb7a @tmm1 tmm1 committed with wycats Aug 9, 2010
Showing with 11 additions and 3 deletions.
  1. +5 −3 Rakefile
  2. +6 −0 gvimrc
View
@@ -159,9 +159,11 @@ end
desc "link vimrc to ~/.vimrc"
task :link_vimrc do
- dest = File.expand_path("~/.vimrc")
- unless File.exist?(dest)
- ln(File.expand_path("../vimrc", __FILE__), dest)
+ %w[ vimrc gvimrc ].each do |file|
+ dest = File.expand_path("~/.#{file}")
+ unless File.exist?(dest)
+ ln(File.expand_path("../#{file}", __FILE__), dest)
+ end
end
end
View
6 gvimrc
@@ -0,0 +1,6 @@
+
+" Apple-T for CommandT
+if has("gui_macvim")
+ macmenu &File.New\ Tab key=<nop>
+ map <D-t> :CommandT<CR>
+endif

0 comments on commit 9ef5dce

Please sign in to comment.