Created
September 29, 2011 20:06
-
-
Save erochest/1251785 to your computer and use it in GitHub Desktop.
Script to fix issues with Janus on Windows.
This file contains hidden or 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
require 'pathname' | |
GVIMRC = <<EOF | |
" undefine all the custom NERDTree-aware commands. | |
" From https://github.com/carlhuda/janus/issues/174 | |
cunabbrev cd | |
cunabbrev touch | |
cunabbrev rm | |
cunabbrev e | |
cunabbrev mkdir | |
" Get rid of E303 permission errors by not using a swap file. | |
set updatecount=0 | |
EOF | |
rc_file = Pathname.new('~/.gvimrc.local').expand_path | |
puts "Writing configuration to #{rc_file}..." | |
File.open(rc_file.to_s, 'w') do |file| | |
file.write(GVIMRC) | |
end | |
puts "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment