@@ -1238,60 +1238,6 @@ enddef
1238
1238
1239
1239
endif
1240
1240
1241
- endif " !exists(" did_install_default_menus" )
1242
-
1243
- " Define these items always, so that syntax can be switched on when it wasn't.
1244
- " But skip them when the Syntax menu was disabled by the user.
1245
- if ! exists (" did_install_syntax_menu" )
1246
- an 50.212 &Syntax .&Manual :syn manual <CR>
1247
- an 50.214 &Syntax .A&utomatic :syn on <CR>
1248
- an <silent> 50.216 &Syntax .On/Off\ for \ &This\ File :call <SID> SynOnOff ()<CR>
1249
- if ! exists (" *s:SynOnOff" )
1250
- def s: SynOnOff ()
1251
- if has (" syntax_items" )
1252
- syn clear
1253
- else
1254
- if ! exists (" g:syntax_on" )
1255
- syn manual
1256
- endif
1257
- set syn = ON
1258
- endif
1259
- enddef
1260
- endif
1261
- endif
1262
-
1263
-
1264
- " Install the Syntax menu only when filetype.vim has been loaded or when
1265
- " manual syntax highlighting is enabled.
1266
- " Avoid installing the Syntax menu twice.
1267
- if (exists (" did_load_filetypes" ) || exists (" syntax_on" ))
1268
- \ && ! exists (" did_install_syntax_menu" )
1269
- let did_install_syntax_menu = 1
1270
-
1271
- " Skip setting up the individual syntax selection menus unless
1272
- " do_syntax_sel_menu is defined (it takes quite a bit of time).
1273
- if exists (" do_syntax_sel_menu" )
1274
- runtime ! synmenu.vim
1275
- else
1276
- an <silent> 50.10 &Syntax .&Show\ File\ Types\ in \ Menu :let do_syntax_sel_menu = 1 <Bar> runtime ! synmenu.vim <Bar> aunmenu &Syntax .&Show\ File\ Types\ in \ Menu <CR>
1277
- an 50.195 &Syntax .- SEP1- <Nop>
1278
- endif
1279
-
1280
- an 50.210 &Syntax .&Off :syn off <CR>
1281
- an 50.700 &Syntax .- SEP3- <Nop>
1282
- an 50.710 &Syntax .Co&lor\ Test :sp $VIMRUNTIME /syntax/ colortest.vim <Bar> so % <CR>
1283
- an 50.720 &Syntax .&Highlight\ Test :runtime syntax /hitest.vim <CR>
1284
- an 50.730 &Syntax .&Convert\ to \ HTML :runtime syntax /2 html.vim <CR>
1285
-
1286
- " Uncomment the next line to compile the functions early to find any mistakes
1287
- " defcompile
1288
-
1289
- endif " !exists(" did_install_syntax_menu" )
1290
-
1291
- " Restore the previous value of 'cpoptions'.
1292
- let &cpo = s: cpo_save
1293
- unlet s: cpo_save
1294
-
1295
1241
1296
1242
if has (" gui_macvim" )
1297
1243
"
@@ -1350,8 +1296,63 @@ if has("gui_macvim")
1350
1296
1351
1297
macm Help.MacVim\ Help key = <D-?>
1352
1298
macm Help.MacVim\ Website action= openWebsite:
1299
+ endif " if has(" gui_macvim" )
1300
+
1301
+ endif " !exists(" did_install_default_menus" )
1302
+
1303
+ " Define these items always, so that syntax can be switched on when it wasn't.
1304
+ " But skip them when the Syntax menu was disabled by the user.
1305
+ if ! exists (" did_install_syntax_menu" )
1306
+ an 50.212 &Syntax .&Manual :syn manual <CR>
1307
+ an 50.214 &Syntax .A&utomatic :syn on <CR>
1308
+ an <silent> 50.216 &Syntax .On/Off\ for \ &This\ File :call <SID> SynOnOff ()<CR>
1309
+ if ! exists (" *s:SynOnOff" )
1310
+ def s: SynOnOff ()
1311
+ if has (" syntax_items" )
1312
+ syn clear
1313
+ else
1314
+ if ! exists (" g:syntax_on" )
1315
+ syn manual
1316
+ endif
1317
+ set syn = ON
1318
+ endif
1319
+ enddef
1320
+ endif
1321
+ endif
1322
+
1323
+
1324
+ " Install the Syntax menu only when filetype.vim has been loaded or when
1325
+ " manual syntax highlighting is enabled.
1326
+ " Avoid installing the Syntax menu twice.
1327
+ if (exists (" did_load_filetypes" ) || exists (" syntax_on" ))
1328
+ \ && ! exists (" did_install_syntax_menu" )
1329
+ let did_install_syntax_menu = 1
1330
+
1331
+ " Skip setting up the individual syntax selection menus unless
1332
+ " do_syntax_sel_menu is defined (it takes quite a bit of time).
1333
+ if exists (" do_syntax_sel_menu" )
1334
+ runtime ! synmenu.vim
1335
+ else
1336
+ an <silent> 50.10 &Syntax .&Show\ File\ Types\ in \ Menu :let do_syntax_sel_menu = 1 <Bar> runtime ! synmenu.vim <Bar> aunmenu &Syntax .&Show\ File\ Types\ in \ Menu <CR>
1337
+ an 50.195 &Syntax .- SEP1- <Nop>
1353
1338
endif
1354
1339
1340
+ an 50.210 &Syntax .&Off :syn off <CR>
1341
+ an 50.700 &Syntax .- SEP3- <Nop>
1342
+ an 50.710 &Syntax .Co&lor\ Test :sp $VIMRUNTIME /syntax/ colortest.vim <Bar> so % <CR>
1343
+ an 50.720 &Syntax .&Highlight\ Test :runtime syntax /hitest.vim <CR>
1344
+ an 50.730 &Syntax .&Convert\ to \ HTML :runtime syntax /2 html.vim <CR>
1345
+
1346
+ " Uncomment the next line to compile the functions early to find any mistakes
1347
+ " defcompile
1348
+
1349
+ endif " !exists(" did_install_syntax_menu" )
1350
+
1351
+ " Restore the previous value of 'cpoptions'.
1352
+ let &cpo = s: cpo_save
1353
+ unlet s: cpo_save
1354
+
1355
+
1355
1356
if has (" touchbar" )
1356
1357
" Set up default Touch Bar buttons.
1357
1358
" 1. Smart fullscreen icon that toggles between going full screen or not.
0 commit comments