-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path0031 - a.vim.json
More file actions
523 lines (523 loc) · 21.1 KB
/
0031 - a.vim.json
File metadata and controls
523 lines (523 loc) · 21.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
{
"script_id": "31",
"display_name": "a.vim",
"summary": "Alternate Files quickly (.c --> .h etc)",
"name": "a.vim",
"script_type": "utility",
"description": "A few of quick commands to swtich between source files and header files quickly.\n\n:A switches to the header file corresponding to the current file being edited (or vise versa)\n:AS splits and switches\n:AV vertical splits and switches\n:AT new tab and switches\n:AN cycles through matches\n:IH switches to file under cursor\n:IHS splits and switches\n:IHV vertical splits and switches\n:IHT new tab and switches\n:IHN cycles through matches\n<Leader>ih switches to file under cursor\n<Leader>is switches to the alternate file of file under cursor (e.g. on <foo.h> switches to foo.cpp)\n<Leader>ihn cycles through matches\n\nE.g. if you are editing foo.c and need to edit foo.h simply execute :A and you will be editting foo.h, to switch back to foo.c execute :A again. \n\nCan be configured to support a variety of languages. Builtin support for C, C++ and ADA95",
"install_details": "Drop a.vim into your favorite plugin directory or source the script from your .vimrc file\nDrop alternate.txt into you doc directory and run helptags",
"versions": [
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=7218",
"filename": "a.vim",
"script_version": "2.18",
"date": "2007-06-07",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Recent versions since 2.16 broke user defined alternate specifications. This patch fixes that."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=7162",
"filename": "a.vim",
"script_version": "2.17",
"date": "2007-05-23",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Fix a bug were spaces in filenames and/or directory names would prevent the alternate file being openned. Thanks to Nathan Stien (for the bug report and patch) and Soeren Sonnenburg (for the bug report)."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=6886",
"filename": "a.vim",
"script_version": "2.16",
"date": "2007-03-16",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Recent patches broke the script in some area, mainly in the area of file extensions which contain a dot...e.g. aspx.cs. Switched to using a dictionary instead of the curly brace variable things."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=6347",
"filename": "alternate.txt",
"script_version": "2.15 doc",
"date": "2006-10-27",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Docs for 2.15"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=6346",
"filename": "a.vim",
"script_version": "2.15",
"date": "2006-10-27",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Initial support for jumping to files under the cursor. New commands IH, IHS, IHV, IHT and IHN. Added sample macros for jumping to the source file corresponding to the header file under the cursor (e.g. jumping on #include <myfile.h> will find myfile.cpp).\n\nSee documentation for more details."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=5698",
"filename": "a.vim",
"script_version": "2.14",
"date": "2006-05-14",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added new :AN command which cycles through all matches after switching to a new file. E.g. vi a.c, :A switches to a.h, :AN might switch to a.hpp if a.h and a.hpp exist. Will only likely be an issue in a big project with with same named source/header files around the place. Will likely only be an issue if you are using the search path and regex features of a.vim."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=5697",
"filename": "alternate.txt",
"script_version": "2.14 doc",
"date": "2006-05-14",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Documentation for a.vim v2.14. Drop it in your doc directory and run helptags."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=5653",
"filename": "a.vim",
"script_version": "2.13",
"date": "2006-05-07",
"vim_version": "7.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added new \"AT\" command which finds the alternate file and opens in a new tab. Similarly to the \"A\" and \"AS\" commands, if the buffer is already open it simply switches to that buffer in the corresponding tab/window. This script will only work with VIM7 from this version forward."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=4154",
"filename": "a.vim",
"script_version": "2.12",
"date": "2005-04-12",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added alternate mappings for OCaml. Nothing more. No reason to upgrade...unless you use OCaml."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=3563",
"filename": "a.vim",
"script_version": "2.11a",
"date": "2004-10-19",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Fix a minor bug when adding alternate extensions. Thanks ilya."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=3479",
"filename": "a.vim",
"script_version": "2.11",
"date": "2004-09-24",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Fix some bugs which have recently crept in. I gave this some regression testing...so I hope all are fixed now. Mot notably, vim foo/a.c would not alternate to foo/a.h. Not sure how that broke...but it is fixed now. Other features still appear to work. Let me know if there are issues."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=3455",
"filename": "a.vim",
"script_version": "2.10",
"date": "2004-09-15",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added a new variable (g:alternateNoDefaultAlternate) which can be set in the .vimrc/_vimrc file to prevent a.vim from creating new files. This is useful when it is not desired to have a.vim to alternate to the default alternation for a particular extension. E.g. if a.c is being editted and a.h does not exist anywhere and :A is done then if g:alternateNoDefaultAlternate is non-zero a.h will not be created. By default the value of g:alternateNoDefaultAlternate is 0 to maintain existing behaviour."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=3439",
"filename": "a.vim",
"script_version": "2.9",
"date": "2004-09-10",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Allow the extension of a file to be more than the text after the last dot. E.g. adding settings like\n\nlet g:alternateExtensions_{'aspx'} = \"aspx.cs,aspx.CS\"\nlet g:alternateExtensions_{'aspx.cs'} = \"aspx,ASPX\"\n\nwill allow a.vim to alternate between foo.aspx and foo.aspx.cs and vice versa. Previous versions would not accept .aspx.cs as an exstension. This version is ok with that."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=3200",
"filename": "a.vim",
"script_version": "2.8",
"date": "2004-07-01",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "[CORRECTION]More enhancements from Bindu Wavell. A new search path type \nof \"reg:\" wasadded. This version allows alternation of files based on regxes. E.g.\n\"reg:/inc/src/g/\" will replace every instance of 'inc' with 'src' in the source\nfile path. This is useful for alternating between /some/path/inc/project/foo.h\nto /some/path/src/project/foo.c. Similarly \"reg:/src/inc/g/\" is the opposite\nalternation. See the comments for ExpandAlternatePath() for more information.\nSoon I will produce some formal documentation for this...until then the script\nis reasonably well commented."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=3028",
"filename": "a.vim",
"script_version": "2.7",
"date": "2004-05-16",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Reworked all the logic for finding alternate files. The files in memory are prefered to files on disk now too. When there are multiple matches for a file found the file in memory is favour, files in the current directory are favoured over files on the path. Hopefully this fixes the inconsistencies in previous versions. Hopefully everything still works too."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=2833",
"filename": "a.vim",
"script_version": "2.6a",
"date": "2004-03-14",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Remove reference to Decho which was accidentally left in after previous debuging. Sorry all."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=2830",
"filename": "a.vim",
"script_version": "2.6",
"date": "2004-03-13",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Implemented a fix from Matt Perry, vi test.cc junktest.h and the :A would alternate to junktest.h and not test.h. Also some minor clean up of the directory search code. \n"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=2669",
"filename": "a.vim",
"script_version": "2.5",
"date": "2004-01-20",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Fixed an inconsistency. In 2.4 :A would always switch to the alternate file, regardless of whether unsaved changes were in the current file. In some cases it was possible to lose changes. This update changes :A back to 2.3 behaviour, but with a nicer error message, and provides support for a :A! command which will force the switch. This seems more consistent with the builtin vim/vi commands. Please let me know if there are any problems. "
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=2010",
"filename": "a.vim",
"script_version": "2.4",
"date": "2003-05-21",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Fix error which occured when alternating from a file which had not been saved."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=1240",
"filename": "a.vim",
"script_version": "2.3",
"date": "2002-09-24",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added support provided by Bindu Wavell to search for the alternate file across directories."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=657",
"filename": "a.vim",
"script_version": "2.2",
"date": "2002-03-06",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "minor clean up. Remove repeated code used to \nsetup the default alternate file mappings. No changes in functionality. No reason to upgrade."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=531",
"filename": "a.vim",
"script_version": "2.1",
"date": "2002-02-02",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "simplified the config using vim's curly brace variables. Should behave the same way version 2.0X behaves....no huge reason to upgrade."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=518",
"filename": "a.vim",
"script_version": "2.0.1",
"date": "2002-01-29",
"vim_version": "6.0",
"author": {
"user_id": "104",
"user_name": "leifw",
"first_name": "Leif",
"last_name": "Wickland",
"email": "leifw at bigfoot , com",
"homepage": "http://wickland.globalcon.net"
},
"release_notes": "Adds support for vertically splitting via the command :AV"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=384",
"filename": "a.vim",
"script_version": "2.0b",
"date": "2001-11-29",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added support for Ada95 extensions\nminor bug fixed too."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=381",
"filename": "a.vim",
"script_version": "2.0a",
"date": "2001-11-27",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "bug fix. handle the cases were the is no alternate file."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=380",
"filename": "a.vim",
"script_version": "2.0",
"date": "2001-11-27",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Complete rewrite. Now the supported extensions are configurable instead of being part of the code.\nNotes on how to configure are in the comments in the file. Expect bugs, please be brave. Will fix reported issue quickly."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=379",
"filename": "a.vim",
"script_version": "1.4",
"date": "2001-11-27",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added support for .hpp/.HPP files. "
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=334",
"filename": "a.vim",
"script_version": "1.3",
"date": "2001-11-10",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Take care of some issues with case-sensitivity of the extension on windows platforms."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=333",
"filename": "a.vim",
"script_version": "1.2",
"date": "2001-11-10",
"vim_version": "6.0",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Minor changes to cater for \"files\" which are in vim buffers but not on disk (yet)."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=163",
"filename": "a.vim",
"script_version": "1.1",
"date": "2001-09-12",
"vim_version": "6.0",
"author": {
"user_id": "104",
"user_name": "leifw",
"first_name": "Leif",
"last_name": "Wickland",
"email": "leifw at bigfoot , com",
"homepage": "http://wickland.globalcon.net"
},
"release_notes": "This is a plugin-ized version of 1.1 for vim 5.7"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=129",
"filename": "a.vim",
"script_version": "1.1",
"date": "2001-08-22",
"vim_version": "5.7",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Added copyright information.\nSupport .cc, .cxx, .C extensions for C++ too.\n"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=44",
"filename": "a.vim",
"script_version": "1.0",
"date": "2001-07-09",
"vim_version": "5.7",
"author": {
"user_id": "49",
"user_name": "feline",
"first_name": "Mike",
"last_name": "Sharpe",
"email": "feline@irendi.com",
"homepage": "http://www.irendi.com"
},
"release_notes": "Corrected vim version. The script works with 5.7, but should work with 6.0 too. "
}
]
}