Permalink
Browse files

Turn off vi compatibility by default

  • Loading branch information...
1 parent 3e7f995 commit cc63ab4b764ca4ac049f4a3c0c68a3d9b78b70d7 @maxbrunsfeld committed May 1, 2012
Showing with 9 additions and 1 deletion.
  1. +5 −1 lib/vimbot/driver.rb
  2. +4 −0 spec/vimbot/driver_spec.rb
View
@@ -133,7 +133,11 @@ def escape_argument(string)
gsub(/<[^>]+>/, '\\\\\0')
end
- def start; server.start; end
+ def start
+ server.start
+ set "nocompatible"
+ end
+
def stop; server.stop; end
end
end
@@ -13,6 +13,10 @@
driver.server.should be_up
end
+ it "turns off vi compatibility" do
+ driver.command("set compatible?").should include "nocompatible"
+ end
+
describe "#stop" do
it "stops the server" do
driver.stop

0 comments on commit cc63ab4

Please sign in to comment.