File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- # frozen_string_literal: true
2
-
3
1
require 'rspec/expectations'
4
2
require 'tmpdir'
5
3
require 'vimrunner'
@@ -252,11 +250,11 @@ def self.new
252
250
config . start_vim do
253
251
VIM = Vimrunner . start_gvim
254
252
VIM . add_plugin ( File . expand_path ( '..' , __dir__ ) )
255
- VIM . command ( ' filetype off' )
256
- VIM . command ( ' filetype plugin indent on' )
257
- VIM . command ( ' autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o' ) # disable automatic comment continuation
258
- VIM . command ( " set ignorecase" ) # make sure we test ignorecase
259
- VIM . command ( "set formatoptions-=cro" ) # disable auto comments on <CR>
253
+ cmd = ': filetype off<CR>'
254
+ cmd += ': filetype plugin indent on<CR>'
255
+ cmd += ': autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o<CR>' # disable automatic comment continuation
256
+ cmd += ": set ignorecase<CR>" # make sure we test ignorecase
257
+ VIM . normal ( cmd )
260
258
VIM
261
259
end
262
260
end
You can’t perform that action at this time.
0 commit comments