robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
1fcd849d40
master
1" Tests for 'packpath' and :packadd 2 3 4func SetUp () 5let s: topdir = getcwd () . '/Xdir' 6exe 'set packpath=' . s: topdir 7let s: plugdir = s: topdir . '/pack/mine/opt/mytest' 8endfunc 9 10func TearDown () 11call delete ( s: topdir , 'rf' ) 12endfunc 13 14func Test_packadd () 15if ! exists ( 's:plugdir' ) 16echomsg 'when running this test manually, call SetUp() first' 17return 18endif 19 20call mkdir ( s: plugdir . '/plugin/also' , 'p' ) 21call mkdir ( s: plugdir . '/ftdetect' , 'p' ) 22call mkdir ( s: plugdir . '/after' , 'p' ) 23 24" This used to crash Vim 25let & rtp = 'nosuchdir,' . s: plugdir . '/after' 26packadd mytest 27" plugdir should be inserted before plugdir/after 28call assert_match ( '^nosuchdir,' . s: plugdir . ',' , & rtp ) 29 30" This used to cause heep-buffer-overflow 31" All existing entries in 'rtp' have the same length here 32let & rtp = 'Xfoodir,Xbardir,Xbazdir' 33packadd mytest 34" plugdir should be inserted after the existing directories 35call assert_match ( '^Xfoodir,Xbardir,Xbazdir,' .. s: plugdir .. ',' , & rtp ) 36 37set rtp & 38let rtp = & rtp 39filetype on 40 41let rtp_entries = split ( rtp , ',' ) 42for entry in rtp_entries 43if entry =~? '\<after\>' 44let first_after_entry = entry 45break 46endif 47endfor 48 49exe 'split ' . s: plugdir . '/plugin/test.vim' 50call setline ( 1 , 'let g:plugin_works = 42' ) 51wq 52 53exe 'split ' . s: plugdir . '/plugin/also/loaded.vim' 54call setline ( 1 , 'let g:plugin_also_works = 77' ) 55wq 56 57exe 'split ' . s: plugdir . '/ftdetect/test.vim' 58call setline ( 1 , 'let g:ftdetect_works = 17' ) 59wq 60 61packadd mytest 62 63call assert_equal ( 42 , g: plugin_works ) 64call assert_equal ( 77 , g: plugin_also_works ) 65call assert_equal ( 17 , g: ftdetect_works ) 66call assert_true ( len ( & rtp ) > len ( rtp )) 67call assert_match ( '/testdir/Xdir/pack/mine/opt/mytest\($\|,\)' , & rtp ) 68 69let new_after = match ( & rtp , '/testdir/Xdir/pack/mine/opt/mytest/after,' ) 70let forwarded = substitute ( first_after_entry , '\\' , '[/\\\\]' , 'g' ) 71let old_after = match ( & rtp , ',' . forwarded . '\>' ) 72call assert_true ( new_after > 0 , 'rtp is ' . & rtp ) 73call assert_true ( old_after > 0 , 'match ' . forwarded . ' in ' . & rtp ) 74call assert_true ( new_after < old_after , 'rtp is ' . & rtp ) 75 76" NOTE: '/.../opt/myte' forwardly matches with '/.../opt/mytest' 77call mkdir ( fnamemodify ( s: plugdir , ':h' ) . '/myte' , 'p' ) 78let rtp = & rtp 79packadd myte 80 81" Check the path of 'myte' is added 82call assert_true ( len ( & rtp ) > len ( rtp )) 83call assert_match ( '/testdir/Xdir/pack/mine/opt/myte\($\|,\)' , & rtp ) 84 85" Check exception 86call assert_fails ( "packadd directorynotfound" , 'E919:' ) 87call assert_fails ( "packadd" , 'E471:' ) 88endfunc 89 90func Test_packadd_start () 91let plugdir = s: topdir . '/pack/mine/start/other' 92call mkdir ( plugdir . '/plugin' , 'p' ) 93set rtp & 94let rtp = & rtp 95filetype on 96 97exe 'split ' . plugdir . '/plugin/test.vim' 98call setline ( 1 , 'let g:plugin_works = 24' ) 99wq 100 101packadd other 102 103call assert_equal ( 24 , g: plugin_works ) 104call assert_true ( len ( & rtp ) > len ( rtp )) 105call assert_match ( '/testdir/Xdir/pack/mine/start/other\($\|,\)' , & rtp ) 106endfunc 107 108func Test_packadd_noload () 109call mkdir ( s: plugdir . '/plugin' , 'p' ) 110call mkdir ( s: plugdir . '/syntax' , 'p' ) 111set rtp & 112let rtp = & rtp 113 114exe 'split ' . s: plugdir . '/plugin/test.vim' 115call setline ( 1 , 'let g:plugin_works = 42' ) 116wq 117let g: plugin_works = 0 118 119packadd ! mytest 120 121call assert_true ( len ( & rtp ) > len ( rtp )) 122call assert_match ( 'testdir/Xdir/pack/mine/opt/mytest\($\|,\)' , & rtp ) 123call assert_equal ( 0 , g: plugin_works ) 124 125" check the path is not added twice 126let new_rtp = & rtp 127packadd ! mytest 128call assert_equal ( new_rtp , & rtp ) 129endfunc 130 131func Test_packadd_symlink_dir () 132if ! has ( 'unix' ) 133return 134endif 135let top2_dir = s: topdir . '/Xdir2' 136let real_dir = s: topdir . '/Xsym' 137call mkdir ( real_dir , 'p' ) 138exec "silent !ln -s Xsym" top2_dir 139let & rtp = top2_dir . ',' . top2_dir . '/after' 140let & packpath = & rtp 141 142let s: plugdir = top2_dir . '/pack/mine/opt/mytest' 143call mkdir ( s: plugdir . '/plugin' , 'p' ) 144 145exe 'split ' . s: plugdir . '/plugin/test.vim' 146call setline ( 1 , 'let g:plugin_works = 44' ) 147wq 148let g: plugin_works = 0 149 150packadd mytest 151 152" Must have been inserted in the middle, not at the end 153call assert_match ( '/pack/mine/opt/mytest,' , & rtp ) 154call assert_equal ( 44 , g: plugin_works ) 155 156" No change when doing it again. 157let rtp_before = & rtp 158packadd mytest 159call assert_equal ( rtp_before , & rtp ) 160 161set rtp & 162let rtp = & rtp 163exec "silent !rm" top2_dir 164endfunc 165 166func Test_packadd_symlink_dir2 () 167if ! has ( 'unix' ) 168return 169endif 170let top2_dir = s: topdir . '/Xdir2' 171let real_dir = s: topdir . '/Xsym/pack' 172call mkdir ( top2_dir , 'p' ) 173call mkdir ( real_dir , 'p' ) 174let & rtp = top2_dir . ',' . top2_dir . '/after' 175let & packpath = & rtp 176 177exec "silent !ln -s ../Xsym/pack" top2_dir . '/pack' 178let s: plugdir = top2_dir . '/pack/mine/opt/mytest' 179call mkdir ( s: plugdir . '/plugin' , 'p' ) 180 181exe 'split ' . s: plugdir . '/plugin/test.vim' 182call setline ( 1 , 'let g:plugin_works = 48' ) 183wq 184let g: plugin_works = 0 185 186packadd mytest 187 188" Must have been inserted in the middle, not at the end 189call assert_match ( '/Xdir2/pack/mine/opt/mytest,' , & rtp ) 190call assert_equal ( 48 , g: plugin_works ) 191 192" No change when doing it again. 193let rtp_before = & rtp 194packadd mytest 195call assert_equal ( rtp_before , & rtp ) 196 197set rtp & 198let rtp = & rtp 199exec "silent !rm" top2_dir . '/pack' 200exec "silent !rmdir" top2_dir 201endfunc 202 203" Check command-line completion for :packadd 204func Test_packadd_completion () 205let optdir1 = & packpath . '/pack/mine/opt' 206let optdir2 = & packpath . '/pack/candidate/opt' 207 208call mkdir ( optdir1 . '/pluginA' , 'p' ) 209call mkdir ( optdir1 . '/pluginC' , 'p' ) 210call writefile ([], optdir1 . '/unrelated' ) 211call mkdir ( optdir2 . '/pluginB' , 'p' ) 212call mkdir ( optdir2 . '/pluginC' , 'p' ) 213call writefile ([], optdir2 . '/unrelated' ) 214 215let li = [] 216call feedkeys ( ":packadd \<Tab>')\<C-B>call add(li, '\<CR>" , 't' ) 217call feedkeys ( ":packadd " . repeat ( "\<Tab>" , 2 ) . "')\<C-B>call add(li, '\<CR>" , 't' ) 218call feedkeys ( ":packadd " . repeat ( "\<Tab>" , 3 ) . "')\<C-B>call add(li, '\<CR>" , 't' ) 219call feedkeys ( ":packadd " . repeat ( "\<Tab>" , 4 ) . "')\<C-B>call add(li, '\<CR>" , 'tx' ) 220call assert_equal ( "packadd pluginA" , li [ 0 ]) 221call assert_equal ( "packadd pluginB" , li [ 1 ]) 222call assert_equal ( "packadd pluginC" , li [ 2 ]) 223call assert_equal ( "packadd " , li [ 3 ]) 224endfunc 225 226func Test_packloadall () 227" plugin foo with an autoload directory 228let fooplugindir = & packpath . '/pack/mine/start/foo/plugin' 229call mkdir ( fooplugindir , 'p' ) 230call writefile ([ 'let g:plugin_foo_number = 1234' , 231 \'let g:plugin_foo_auto = bbb#value' , 232 \'let g:plugin_extra_auto = extra#value' ], fooplugindir . '/bar.vim' ) 233let fooautodir = & packpath . '/pack/mine/start/foo/autoload' 234call mkdir ( fooautodir , 'p' ) 235call writefile ([ 'let bar#value = 77' ], fooautodir . '/bar.vim' ) 236 237" plugin aaa with an autoload directory 238let aaaplugindir = & packpath . '/pack/mine/start/aaa/plugin' 239call mkdir ( aaaplugindir , 'p' ) 240call writefile ([ 'let g:plugin_aaa_number = 333' , 241 \'let g:plugin_aaa_auto = bar#value' ], aaaplugindir . '/bbb.vim' ) 242let aaaautodir = & packpath . '/pack/mine/start/aaa/autoload' 243call mkdir ( aaaautodir , 'p' ) 244call writefile ([ 'let bbb#value = 55' ], aaaautodir . '/bbb.vim' ) 245 246" plugin extra with only an autoload directory 247let extraautodir = & packpath . '/pack/mine/start/extra/autoload' 248call mkdir ( extraautodir , 'p' ) 249call writefile ([ 'let extra#value = 99' ], extraautodir . '/extra.vim' ) 250 251packloadall 252call assert_equal ( 1234 , g: plugin_foo_number ) 253call assert_equal ( 55 , g: plugin_foo_auto ) 254call assert_equal ( 99 , g: plugin_extra_auto ) 255call assert_equal ( 333 , g: plugin_aaa_number ) 256call assert_equal ( 77 , g: plugin_aaa_auto ) 257 258" only works once 259call writefile ([ 'let g:plugin_bar_number = 4321' ], fooplugindir . '/bar2.vim' ) 260packloadall 261call assert_false ( exists ( 'g:plugin_bar_number' )) 262 263" works when ! used 264packloadall ! 265call assert_equal ( 4321 , g: plugin_bar_number ) 266endfunc 267 268func Test_start_autoload () 269" plugin foo with an autoload directory 270let autodir = & packpath .. '/pack/mine/start/foo/autoload' 271call mkdir ( autodir , 'p' ) 272let fname = autodir .. '/foobar.vim' 273call writefile ([ 'func foobar#test()' , 274 \' return 1666' , 275 \'endfunc' ], fname ) 276 277call assert_equal ( 1666 , foobar#test ()) 278call delete ( fname ) 279endfunc 280 281func Test_helptags () 282let docdir1 = & packpath . '/pack/mine/start/foo/doc' 283let docdir2 = & packpath . '/pack/mine/start/bar/doc' 284call mkdir ( docdir1 , 'p' ) 285call mkdir ( docdir2 , 'p' ) 286call writefile ([ 'look here: *look-here*' ], docdir1 . '/bar.txt' ) 287call writefile ([ 'look away: *look-away*' ], docdir2 . '/foo.txt' ) 288exe 'set rtp=' . & packpath . '/pack/mine/start/foo,' . & packpath . '/pack/mine/start/bar' 289 290helptags ALL 291 292let tags1 = readfile ( docdir1 . '/tags' ) 293call assert_match ( 'look-here' , tags1 [ 0 ]) 294let tags2 = readfile ( docdir2 . '/tags' ) 295call assert_match ( 'look-away' , tags2 [ 0 ]) 296 297call assert_fails ( 'helptags abcxyz' , 'E150:' ) 298endfunc 299 300func Test_colorscheme () 301let colordirrun = & packpath . '/runtime/colors' 302let colordirstart = & packpath . '/pack/mine/start/foo/colors' 303let colordiropt = & packpath . '/pack/mine/opt/bar/colors' 304call mkdir ( colordirrun , 'p' ) 305call mkdir ( colordirstart , 'p' ) 306call mkdir ( colordiropt , 'p' ) 307call writefile ([ 'let g:found_one = 1' ], colordirrun . '/one.vim' ) 308call writefile ([ 'let g:found_two = 1' ], colordirstart . '/two.vim' ) 309call writefile ([ 'let g:found_three = 1' ], colordiropt . '/three.vim' ) 310exe 'set rtp=' . & packpath . '/runtime' 311 312colorscheme one 313call assert_equal ( 1 , g: found_one ) 314colorscheme two 315call assert_equal ( 1 , g: found_two ) 316colorscheme three 317call assert_equal ( 1 , g: found_three ) 318endfunc 319 320func Test_colorscheme_completion () 321let colordirrun = & packpath . '/runtime/colors' 322let colordirstart = & packpath . '/pack/mine/start/foo/colors' 323let colordiropt = & packpath . '/pack/mine/opt/bar/colors' 324call mkdir ( colordirrun , 'p' ) 325call mkdir ( colordirstart , 'p' ) 326call mkdir ( colordiropt , 'p' ) 327call writefile ([ 'let g:found_one = 1' ], colordirrun . '/one.vim' ) 328call writefile ([ 'let g:found_two = 1' ], colordirstart . '/two.vim' ) 329call writefile ([ 'let g:found_three = 1' ], colordiropt . '/three.vim' ) 330exe 'set rtp=' . & packpath . '/runtime' 331 332let li = [] 333call feedkeys ( ":colorscheme " . repeat ( "\<Tab>" , 1 ) . "')\<C-B>call add(li, '\<CR>" , 't' ) 334call feedkeys ( ":colorscheme " . repeat ( "\<Tab>" , 2 ) . "')\<C-B>call add(li, '\<CR>" , 't' ) 335call feedkeys ( ":colorscheme " . repeat ( "\<Tab>" , 3 ) . "')\<C-B>call add(li, '\<CR>" , 't' ) 336call feedkeys ( ":colorscheme " . repeat ( "\<Tab>" , 4 ) . "')\<C-B>call add(li, '\<CR>" , 'tx' ) 337call assert_equal ( "colorscheme one" , li [ 0 ]) 338call assert_equal ( "colorscheme three" , li [ 1 ]) 339call assert_equal ( "colorscheme two" , li [ 2 ]) 340call assert_equal ( "colorscheme " , li [ 3 ]) 341endfunc 342 343func Test_runtime () 344let rundir = & packpath . '/runtime/extra' 345let startdir = & packpath . '/pack/mine/start/foo/extra' 346let optdir = & packpath . '/pack/mine/opt/bar/extra' 347call mkdir ( rundir , 'p' ) 348call mkdir ( startdir , 'p' ) 349call mkdir ( optdir , 'p' ) 350call writefile ([ 'let g:sequence .= "run"' ], rundir . '/bar.vim' ) 351call writefile ([ 'let g:sequence .= "start"' ], startdir . '/bar.vim' ) 352call writefile ([ 'let g:sequence .= "foostart"' ], startdir . '/foo.vim' ) 353call writefile ([ 'let g:sequence .= "opt"' ], optdir . '/bar.vim' ) 354call writefile ([ 'let g:sequence .= "xxxopt"' ], optdir . '/xxx.vim' ) 355exe 'set rtp=' . & packpath . '/runtime' 356 357let g: sequence = '' 358runtime extra/bar.vim 359call assert_equal ( 'run' , g: sequence ) 360let g: sequence = '' 361runtime NoSuchFile extra/bar.vim 362call assert_equal ( 'run' , g: sequence ) 363 364let g: sequence = '' 365runtime START extra/bar.vim 366call assert_equal ( 'start' , g: sequence ) 367let g: sequence = '' 368runtime START NoSuchFile extra/bar.vim extra/foo.vim 369call assert_equal ( 'start' , g: sequence ) 370let g: sequence = '' 371runtime START NoSuchFile extra/foo.vim extra/bar.vim 372call assert_equal ( 'foostart' , g: sequence ) 373let g: sequence = '' 374runtime ! START NoSuchFile extra/bar.vim extra/foo.vim 375call assert_equal ( 'startfoostart' , g: sequence ) 376 377let g: sequence = '' 378runtime OPT extra/bar.vim 379call assert_equal ( 'opt' , g: sequence ) 380let g: sequence = '' 381runtime OPT NoSuchFile extra/bar.vim extra/xxx.vim 382call assert_equal ( 'opt' , g: sequence ) 383let g: sequence = '' 384runtime OPT NoSuchFile extra/xxx.vim extra/bar.vim 385call assert_equal ( 'xxxopt' , g: sequence ) 386let g: sequence = '' 387runtime ! OPT NoSuchFile extra/bar.vim extra/xxx.vim 388call assert_equal ( 'optxxxopt' , g: sequence ) 389 390let g: sequence = '' 391runtime PACK extra/bar.vim 392call assert_equal ( 'start' , g: sequence ) 393let g: sequence = '' 394runtime ! PACK extra/bar.vim 395call assert_equal ( 'startopt' , g: sequence ) 396let g: sequence = '' 397runtime PACK extra/xxx.vim 398call assert_equal ( 'xxxopt' , g: sequence ) 399let g: sequence = '' 400runtime PACK extra/xxx.vim extra/foo.vim extra/bar.vim 401call assert_equal ( 'foostart' , g: sequence ) 402let g: sequence = '' 403runtime ! PACK extra/bar.vim extra/xxx.vim extra/foo.vim 404call assert_equal ( 'startfoostartoptxxxopt' , g: sequence ) 405 406let g: sequence = '' 407runtime ALL extra/bar.vim 408call assert_equal ( 'run' , g: sequence ) 409let g: sequence = '' 410runtime ALL extra/foo.vim 411call assert_equal ( 'foostart' , g: sequence ) 412let g: sequence = '' 413runtime ! ALL extra/xxx.vim 414call assert_equal ( 'xxxopt' , g: sequence ) 415let g: sequence = '' 416runtime ! ALL extra/bar.vim 417call assert_equal ( 'runstartopt' , g: sequence ) 418let g: sequence = '' 419runtime ALL extra/xxx.vim extra/foo.vim extra/bar.vim 420call assert_equal ( 'run' , g: sequence ) 421let g: sequence = '' 422runtime ! ALL extra/bar.vim extra/xxx.vim extra/foo.vim 423call assert_equal ( 'runstartfoostartoptxxxopt' , g: sequence ) 424endfunc 425 426func Test_runtime_completion () 427let rundir = & packpath . '/runtime/Aextra' 428let startdir = & packpath . '/pack/mine/start/foo/Aextra' 429let optdir = & packpath . '/pack/mine/opt/bar/Aextra' 430call mkdir ( rundir . '/Arunbaz' , 'p' ) 431call mkdir ( startdir . '/Astartbaz' , 'p' ) 432call mkdir ( optdir . '/Aoptbaz' , 'p' ) 433call writefile ([], rundir . '/../Arunfoo.vim' ) 434call writefile ([], rundir . '/Arunbar.vim' ) 435call writefile ([], rundir . '/Aunrelated' ) 436call writefile ([], rundir . '/../Aunrelated' ) 437call writefile ([], startdir . '/../Astartfoo.vim' ) 438call writefile ([], startdir . '/Astartbar.vim' ) 439call writefile ([], startdir . '/Aunrelated' ) 440call writefile ([], startdir . '/../Aunrelated' ) 441call writefile ([], optdir . '/../Aoptfoo.vim' ) 442call writefile ([], optdir . '/Aoptbar.vim' ) 443call writefile ([], optdir . '/Aunrelated' ) 444call writefile ([], optdir . '/../Aunrelated' ) 445exe 'set rtp=' . & packpath . '/runtime' 446 447func Check_runtime_completion ( arg , arg_prev , res ) 448call feedkeys ( ':runtime ' .. a: arg .. "\<C-A>\<C-B>\"\<CR>" , 'xt' ) 449call assert_equal ( '"runtime ' .. a: arg_prev .. join ( a: res ), @:) 450call assert_equal ( a: res , getcompletion ( a: arg , 'runtime' )) 451endfunc 452 453call Check_runtime_completion ( '' , '' , 454 \[ 'Aextra/' , 'Arunfoo.vim' , 'START' , 'OPT' , 'PACK' , 'ALL' ]) 455call Check_runtime_completion ( 'S' , '' , 456 \[ 'START' ]) 457call Check_runtime_completion ( 'O' , '' , 458 \[ 'OPT' ]) 459call Check_runtime_completion ( 'P' , '' , 460 \[ 'PACK' ]) 461call Check_runtime_completion ( 'A' , '' , 462 \[ 'Aextra/' , 'Arunfoo.vim' , 'ALL' ]) 463call Check_runtime_completion ( 'Other.vim ' , 'Other.vim ' , 464 \[ 'Aextra/' , 'Arunfoo.vim' ]) 465call Check_runtime_completion ( 'Aextra/' , '' , 466 \[ 'Aextra/Arunbar.vim' , 'Aextra/Arunbaz/' ]) 467call Check_runtime_completion ( 'Other.vim Aextra/' , 'Other.vim ' , 468 \[ 'Aextra/Arunbar.vim' , 'Aextra/Arunbaz/' ]) 469 470call Check_runtime_completion ( 'START ' , 'START ' , 471 \[ 'Aextra/' , 'Astartfoo.vim' ]) 472call Check_runtime_completion ( 'START Other.vim ' , 'START Other.vim ' , 473 \[ 'Aextra/' , 'Astartfoo.vim' ]) 474call Check_runtime_completion ( 'START A' , 'START ' , 475 \[ 'Aextra/' , 'Astartfoo.vim' ]) 476call Check_runtime_completion ( 'START Other.vim A' , 'START Other.vim ' , 477 \[ 'Aextra/' , 'Astartfoo.vim' ]) 478call Check_runtime_completion ( 'START Aextra/' , 'START ' , 479 \[ 'Aextra/Astartbar.vim' , 'Aextra/Astartbaz/' ]) 480call Check_runtime_completion ( 'START Other.vim Aextra/' , 'START Other.vim ' , 481 \[ 'Aextra/Astartbar.vim' , 'Aextra/Astartbaz/' ]) 482 483call Check_runtime_completion ( 'OPT ' , 'OPT ' , 484 \[ 'Aextra/' , 'Aoptfoo.vim' ]) 485call Check_runtime_completion ( 'OPT Other.vim ' , 'OPT Other.vim ' , 486 \[ 'Aextra/' , 'Aoptfoo.vim' ]) 487call Check_runtime_completion ( 'OPT A' , 'OPT ' , 488 \[ 'Aextra/' , 'Aoptfoo.vim' ]) 489call Check_runtime_completion ( 'OPT Other.vim A' , 'OPT Other.vim ' , 490 \[ 'Aextra/' , 'Aoptfoo.vim' ]) 491call Check_runtime_completion ( 'OPT Aextra/' , 'OPT ' , 492 \[ 'Aextra/Aoptbar.vim' , 'Aextra/Aoptbaz/' ]) 493call Check_runtime_completion ( 'OPT Other.vim Aextra/' , 'OPT Other.vim ' , 494 \[ 'Aextra/Aoptbar.vim' , 'Aextra/Aoptbaz/' ]) 495 496call Check_runtime_completion ( 'PACK ' , 'PACK ' , 497 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Astartfoo.vim' ]) 498call Check_runtime_completion ( 'PACK Other.vim ' , 'PACK Other.vim ' , 499 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Astartfoo.vim' ]) 500call Check_runtime_completion ( 'PACK A' , 'PACK ' , 501 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Astartfoo.vim' ]) 502call Check_runtime_completion ( 'PACK Other.vim A' , 'PACK Other.vim ' , 503 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Astartfoo.vim' ]) 504call Check_runtime_completion ( 'PACK Aextra/' , 'PACK ' , 505 \[ 'Aextra/Aoptbar.vim' , 'Aextra/Aoptbaz/' , 506 \'Aextra/Astartbar.vim' , 'Aextra/Astartbaz/' ]) 507call Check_runtime_completion ( 'PACK Other.vim Aextra/' , 'PACK Other.vim ' , 508 \[ 'Aextra/Aoptbar.vim' , 'Aextra/Aoptbaz/' , 509 \'Aextra/Astartbar.vim' , 'Aextra/Astartbaz/' ]) 510 511call Check_runtime_completion ( 'ALL ' , 'ALL ' , 512 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Arunfoo.vim' , 'Astartfoo.vim' ]) 513call Check_runtime_completion ( 'ALL Other.vim ' , 'ALL Other.vim ' , 514 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Arunfoo.vim' , 'Astartfoo.vim' ]) 515call Check_runtime_completion ( 'ALL A' , 'ALL ' , 516 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Arunfoo.vim' , 'Astartfoo.vim' ]) 517call Check_runtime_completion ( 'ALL Other.vim A' , 'ALL Other.vim ' , 518 \[ 'Aextra/' , 'Aoptfoo.vim' , 'Arunfoo.vim' , 'Astartfoo.vim' ]) 519call Check_runtime_completion ( 'ALL Aextra/' , 'ALL ' , 520 \[ 'Aextra/Aoptbar.vim' , 'Aextra/Aoptbaz/' , 521 \'Aextra/Arunbar.vim' , 'Aextra/Arunbaz/' , 522 \'Aextra/Astartbar.vim' , 'Aextra/Astartbaz/' ]) 523call Check_runtime_completion ( 'ALL Other.vim Aextra/' , 'ALL Other.vim ' , 524 \[ 'Aextra/Aoptbar.vim' , 'Aextra/Aoptbaz/' , 525 \'Aextra/Arunbar.vim' , 'Aextra/Arunbaz/' , 526 \'Aextra/Astartbar.vim' , 'Aextra/Astartbaz/' ]) 527 528delfunc Check_runtime_completion 529endfunc 530 531" vim: shiftwidth=2 sts=2 expandtab