Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

link gvimrc to enable apple-t for CommandT in MacVIM

  • Loading branch information...
commit 9ef5dcec7b69bc8b5aba07c8ff2906950e5deb7a 1 parent 72f09bf
@tmm1 tmm1 authored wycats committed
Showing with 11 additions and 3 deletions.
  1. +5 −3 Rakefile
  2. +6 −0 gvimrc
View
8 Rakefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.