@@ -1137,7 +1137,8 @@ func! Test_normal19_z_spell()
11371137endfu
11381138
11391139func ! Test_normal20_exmode ()
1140- if ! (has (" win32" ) || has (" win64" ))
1140+ if ! has (" unix" )
1141+ " Reading from redirected file doesn't work on MS-Windows
11411142 return
11421143 endif
11431144 call writefile ([' 1a' , ' foo' , ' bar' , ' .' , ' w! Xfile2' , ' q!' ], ' Xscript' )
@@ -1168,8 +1169,8 @@ endfu
11681169
11691170func ! Test_normal22_zet ()
11701171 " Test for ZZ
1171- let shell = &shell
1172- let &shell = ' sh'
1172+ " let shell = &shell
1173+ " let &shell = 'sh'
11731174 call writefile ([' 1' , ' 2' ], ' Xfile' )
11741175 let args = ' -u NONE -N -U NONE -i NONE --noplugins -X --not-a-term'
11751176 call system (v: progpath . args . ' -c "%d" -c ":norm! ZZ" Xfile' )
@@ -1185,7 +1186,7 @@ func! Test_normal22_zet()
11851186 for file in [' Xfile' ]
11861187 call delete (file )
11871188 endfor
1188- let &shell = shell
1189+ " let &shell = shell
11891190endfu
11901191
11911192func ! Test_normal23_K ()
@@ -1206,7 +1207,8 @@ func! Test_normal23_K()
12061207 call assert_match (' \*version8\.0\*' , getline (' .' ))
12071208 helpclose
12081209
1209- if ! (has (" win32" ) || has (" win64" ))
1210+ " Only expect "man" to work on Unix
1211+ if ! has (" unix" )
12101212 let &keywordprg = k
12111213 bw !
12121214 return
@@ -1642,6 +1644,7 @@ fun! Test_normal33_g_cmd2()
16421644 call assert_equal (' l' , getreg (0 ))
16431645
16441646 " Test for g Ctrl-G
1647+ set ff = unix
16451648 let a = execute (" :norm! g\<c-g> " )
16461649 call assert_match (' Col 15 of 43; Line 2 of 2; Word 2 of 2; Byte 16 of 45' , a )
16471650
@@ -1692,6 +1695,7 @@ endfu
16921695fun ! Test_normal36_g_cmd5 ()
16931696 new
16941697 call append (0 , ' abcdefghijklmnopqrstuvwxyz' )
1698+ set ff = unix
16951699 " Test for gp gP
16961700 call append (1 , range (1 ,10 ))
16971701 1
0 commit comments