Given /^the splitjoin plugin is loaded$/ do
  plugin_dir = File.expand_path('../../..', __FILE__)
  puts @vim.add_plugin plugin_dir, 'plugin/splitjoin.vim'
end

Given /^"([^"]*)" is set$/ do |boolean_setting|
  @vim.command("set #{boolean_setting}")
end

Given /^"([^"]*)" is set to "([^"]*)"$/ do |setting, value|
  @vim.command("set #{setting}=#{value}")
end

When /^I split the line$/ do
  @vim.command 'SplitjoinSplit'
end

When /^I pry$/ do
  require 'pry'
  pry
end

Given /^the splitjoin plugin is loaded$/ do
  plugin_dir = File.expand_path('../../..', __FILE__)
  puts @vim.add_plugin plugin_dir, 'plugin/splitjoin.vim'
end

When /^I split the line$/ do
  @vim.command 'SplitjoinSplit'
end

When /^I pry$/ do
  require 'pry'
  pry
end

Move some steps to cucumber-vimscript
Move some steps to cucumber-vimscript
