Skip to content

Instantly share code, notes, and snippets.

@erochest
Created September 29, 2011 20:06
Show Gist options
  • Save erochest/1251785 to your computer and use it in GitHub Desktop.
Save erochest/1251785 to your computer and use it in GitHub Desktop.
Script to fix issues with Janus on Windows.
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