@@ -1251,67 +1251,92 @@ typedef struct {
1251
1251
enum auto_event
1252
1252
{
1253
1253
EVENT_BUFADD = 0 , /* after adding a buffer to the buffer list */
1254
- EVENT_BUFNEW , /* after creating any buffer */
1255
1254
EVENT_BUFDELETE , /* deleting a buffer from the buffer list */
1256
- EVENT_BUFWIPEOUT , /* just before really deleting a buffer */
1257
1255
EVENT_BUFENTER , /* after entering a buffer */
1258
1256
EVENT_BUFFILEPOST , /* after renaming a buffer */
1259
1257
EVENT_BUFFILEPRE , /* before renaming a buffer */
1258
+ EVENT_BUFHIDDEN , /* just after buffer becomes hidden */
1260
1259
EVENT_BUFLEAVE , /* before leaving a buffer */
1260
+ EVENT_BUFNEW , /* after creating any buffer */
1261
1261
EVENT_BUFNEWFILE , /* when creating a buffer for a new file */
1262
+ EVENT_BUFREADCMD , /* read buffer using command */
1262
1263
EVENT_BUFREADPOST , /* after reading a buffer */
1263
1264
EVENT_BUFREADPRE , /* before reading a buffer */
1264
- EVENT_BUFREADCMD , /* read buffer using command */
1265
1265
EVENT_BUFUNLOAD , /* just before unloading a buffer */
1266
- EVENT_BUFHIDDEN , /* just after buffer becomes hidden */
1267
1266
EVENT_BUFWINENTER , /* after showing a buffer in a window */
1268
1267
EVENT_BUFWINLEAVE , /* just after buffer removed from window */
1268
+ EVENT_BUFWIPEOUT , /* just before really deleting a buffer */
1269
+ EVENT_BUFWRITECMD , /* write buffer using command */
1269
1270
EVENT_BUFWRITEPOST , /* after writing a buffer */
1270
1271
EVENT_BUFWRITEPRE , /* before writing a buffer */
1271
- EVENT_BUFWRITECMD , /* write buffer using command */
1272
1272
EVENT_CMDLINECHANGED , /* command line was modified*/
1273
1273
EVENT_CMDLINEENTER , /* after entering the command line */
1274
1274
EVENT_CMDLINELEAVE , /* before leaving the command line */
1275
+ EVENT_CMDUNDEFINED , /* command undefined */
1275
1276
EVENT_CMDWINENTER , /* after entering the cmdline window */
1276
1277
EVENT_CMDWINLEAVE , /* before leaving the cmdline window */
1277
1278
EVENT_COLORSCHEME , /* after loading a colorscheme */
1278
1279
EVENT_COMPLETEDONE , /* after finishing insert complete */
1279
- EVENT_DIRCHANGED , /* after changing directory as a result of user cmd */
1280
+ EVENT_CURSORHOLD , /* cursor in same position for a while */
1281
+ EVENT_CURSORHOLDI , /* idem, in Insert mode */
1282
+ EVENT_CURSORMOVED , /* cursor was moved */
1283
+ EVENT_CURSORMOVEDI , /* cursor was moved in Insert mode */
1284
+ EVENT_DIRCHANGED , /* after user changed directory */
1285
+ EVENT_ENCODINGCHANGED , /* after changing the 'encoding' option */
1280
1286
EVENT_EXITPRE , /* before exiting */
1287
+ EVENT_FILEAPPENDCMD , /* append to a file using command */
1281
1288
EVENT_FILEAPPENDPOST , /* after appending to a file */
1282
1289
EVENT_FILEAPPENDPRE , /* before appending to a file */
1283
- EVENT_FILEAPPENDCMD , /* append to a file using command */
1290
+ EVENT_FILECHANGEDRO , /* before first change to read-only file */
1284
1291
EVENT_FILECHANGEDSHELL , /* after shell command that changed file */
1285
1292
EVENT_FILECHANGEDSHELLPOST , /* after (not) reloading changed file */
1286
- EVENT_FILECHANGEDRO , /* before first change to read-only file */
1293
+ EVENT_FILEREADCMD , /* read from a file using command */
1287
1294
EVENT_FILEREADPOST , /* after reading a file */
1288
1295
EVENT_FILEREADPRE , /* before reading a file */
1289
- EVENT_FILEREADCMD , /* read from a file using command */
1290
1296
EVENT_FILETYPE , /* new file type detected (user defined) */
1297
+ EVENT_FILEWRITECMD , /* write to a file using command */
1291
1298
EVENT_FILEWRITEPOST , /* after writing a file */
1292
1299
EVENT_FILEWRITEPRE , /* before writing a file */
1293
- EVENT_FILEWRITECMD , /* write to a file using command */
1294
1300
EVENT_FILTERREADPOST , /* after reading from a filter */
1295
1301
EVENT_FILTERREADPRE , /* before reading from a filter */
1296
1302
EVENT_FILTERWRITEPOST , /* after writing to a filter */
1297
1303
EVENT_FILTERWRITEPRE , /* before writing to a filter */
1298
1304
EVENT_FOCUSGAINED , /* got the focus */
1299
1305
EVENT_FOCUSLOST , /* lost the focus to another app */
1306
+ EVENT_FUNCUNDEFINED , /* if calling a function which doesn't exist */
1300
1307
EVENT_GUIENTER , /* after starting the GUI */
1301
1308
EVENT_GUIFAILED , /* after starting the GUI failed */
1302
1309
EVENT_INSERTCHANGE , /* when changing Insert/Replace mode */
1310
+ EVENT_INSERTCHARPRE , /* before inserting a char */
1303
1311
EVENT_INSERTENTER , /* when entering Insert mode */
1304
1312
EVENT_INSERTLEAVE , /* when leaving Insert mode */
1305
1313
EVENT_MENUPOPUP , /* just before popup menu is displayed */
1314
+ EVENT_OPTIONSET , /* option was set */
1306
1315
EVENT_QUICKFIXCMDPOST , /* after :make, :grep etc. */
1307
1316
EVENT_QUICKFIXCMDPRE , /* before :make, :grep etc. */
1308
1317
EVENT_QUITPRE , /* before :quit */
1318
+ EVENT_REMOTEREPLY , /* upon string reception from a remote vim */
1309
1319
EVENT_SESSIONLOADPOST , /* after loading a session file */
1320
+ EVENT_SHELLCMDPOST , /* after ":!cmd" */
1321
+ EVENT_SHELLFILTERPOST , /* after ":1,2!cmd", ":w !cmd", ":r !cmd". */
1322
+ EVENT_SOURCECMD , /* sourcing a Vim script using command */
1323
+ EVENT_SOURCEPRE , /* before sourcing a Vim script */
1324
+ EVENT_SPELLFILEMISSING , /* spell file missing */
1310
1325
EVENT_STDINREADPOST , /* after reading from stdin */
1311
1326
EVENT_STDINREADPRE , /* before reading from stdin */
1327
+ EVENT_SWAPEXISTS , /* found existing swap file */
1312
1328
EVENT_SYNTAX , /* syntax selected */
1329
+ EVENT_TABCLOSED , /* after closing a tab page */
1330
+ EVENT_TABENTER , /* after entering a tab page */
1331
+ EVENT_TABLEAVE , /* before leaving a tab page */
1332
+ EVENT_TABNEW , /* when entering a new tab page */
1313
1333
EVENT_TERMCHANGED , /* after changing 'term' */
1334
+ EVENT_TERMINALOPEN , /* after a terminal buffer was created */
1314
1335
EVENT_TERMRESPONSE , /* after setting "v:termresponse" */
1336
+ EVENT_TEXTCHANGED , /* text was modified not in Insert mode */
1337
+ EVENT_TEXTCHANGEDI , /* text was modified in Insert mode */
1338
+ EVENT_TEXTCHANGEDP , /* TextChangedI with popup menu visible */
1339
+ EVENT_TEXTYANKPOST , /* after some text was yanked */
1315
1340
EVENT_USER , /* user defined autocommand */
1316
1341
EVENT_VIMENTER , /* after starting Vim */
1317
1342
EVENT_VIMLEAVE , /* before exiting Vim */
@@ -1320,33 +1345,7 @@ enum auto_event
1320
1345
EVENT_WINENTER , /* after entering a window */
1321
1346
EVENT_WINLEAVE , /* before leaving a window */
1322
1347
EVENT_WINNEW , /* when entering a new window */
1323
- EVENT_ENCODINGCHANGED , /* after changing the 'encoding' option */
1324
- EVENT_INSERTCHARPRE , /* before inserting a char */
1325
- EVENT_CURSORHOLD , /* cursor in same position for a while */
1326
- EVENT_CURSORHOLDI , /* idem, in Insert mode */
1327
- EVENT_FUNCUNDEFINED , /* if calling a function which doesn't exist */
1328
- EVENT_REMOTEREPLY , /* upon string reception from a remote vim */
1329
- EVENT_SWAPEXISTS , /* found existing swap file */
1330
- EVENT_SOURCEPRE , /* before sourcing a Vim script */
1331
- EVENT_SOURCECMD , /* sourcing a Vim script using command */
1332
- EVENT_SPELLFILEMISSING , /* spell file missing */
1333
- EVENT_CURSORMOVED , /* cursor was moved */
1334
- EVENT_CURSORMOVEDI , /* cursor was moved in Insert mode */
1335
- EVENT_TABENTER , /* after entering a tab page */
1336
- EVENT_TABLEAVE , /* before leaving a tab page */
1337
- EVENT_TABNEW , /* when entering a new tab page */
1338
- EVENT_TABCLOSED , /* after closing a tab page */
1339
- EVENT_SHELLCMDPOST , /* after ":!cmd" */
1340
- EVENT_SHELLFILTERPOST , /* after ":1,2!cmd", ":w !cmd", ":r !cmd". */
1341
- EVENT_TEXTCHANGED , /* text was modified not in Insert mode */
1342
- EVENT_TEXTCHANGEDI , /* text was modified in Insert mode without
1343
- popup menu visible */
1344
- EVENT_TEXTCHANGEDP , /* text was modified in Insert mode with popup
1345
- menu visible */
1346
- EVENT_CMDUNDEFINED , /* command undefined */
1347
- EVENT_OPTIONSET , /* option was set */
1348
- EVENT_TEXTYANKPOST , /* after some text was yanked */
1349
- EVENT_TERMINALOPEN , /* after a terminal buffer was created */
1348
+
1350
1349
NUM_EVENTS /* MUST be the last one */
1351
1350
};
1352
1351
0 commit comments