Skip to content

Commit

Permalink
Turn off vi compatibility by default
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunsfeld committed May 1, 2012
1 parent 3e7f995 commit cc63ab4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/vimbot/driver.rb
Expand Up @@ -133,7 +133,11 @@ def escape_argument(string)
gsub(/<[^>]+>/, '\\\\\0') gsub(/<[^>]+>/, '\\\\\0')
end end


def start; server.start; end def start
server.start
set "nocompatible"
end

def stop; server.stop; end def stop; server.stop; end
end end
end end
4 changes: 4 additions & 0 deletions spec/vimbot/driver_spec.rb
Expand Up @@ -13,6 +13,10 @@
driver.server.should be_up driver.server.should be_up
end end


it "turns off vi compatibility" do
driver.command("set compatible?").should include "nocompatible"
end

describe "#stop" do describe "#stop" do
it "stops the server" do it "stops the server" do
driver.stop driver.stop
Expand Down

0 comments on commit cc63ab4

Please sign in to comment.