6424
|
1 Test for user command counts vim: set ft=vim :
|
|
2
|
|
3 STARTTEST
|
|
4 :let g:lines = []
|
|
5 :so tiny.vim
|
|
6 :com -range RangeLines :call add(g:lines, 'Rangeg:Lines '.<line1>.' '.<line2>)
|
|
7 :com -range -addr=arguments RangeArguments :call add(g:lines, 'RangeArguments '.<line1>.' '.<line2>)
|
|
8 :com -range=% -addr=arguments RangeArgumentsAll :call add(g:lines, 'RangeArgumentsAll '.<line1>.' '.<line2>)
|
|
9 :com -range -addr=loaded_buffers RangeLoadedBuffers :call add(g:lines, 'RangeLoadedBuffers '.<line1>.' '.<line2>)
|
|
10 :com -range=% -addr=loaded_buffers RangeLoadedBuffersAll :call add(g:lines, 'RangeLoadedBuffersAll '.<line1>.' '.<line2>)
|
|
11 :com -range -addr=buffers RangeBuffers :call add(g:lines, 'RangeBuffers '.<line1>.' '.<line2>)
|
|
12 :com -range=% -addr=buffers RangeBuffersAll :call add(g:lines, 'RangeBuffersAll '.<line1>.' '.<line2>)
|
|
13 :com -range -addr=windows RangeWindows :call add(g:lines, 'RangeWindows '.<line1>.' '.<line2>)
|
|
14 :com -range=% -addr=windows RangeWindowsAll :call add(g:lines, 'RangeWindowsAll '.<line1>.' '.<line2>)
|
|
15 :com -range -addr=tabs RangeTabs :call add(g:lines, 'RangeTabs '.<line1>.' '.<line2>)
|
|
16 :com -range=% -addr=tabs RangeTabsAll :call add(g:lines, 'RangeTabsAll '.<line1>.' '.<line2>)
|
|
17 :set hidden
|
|
18 :arga a b c d
|
|
19 :argdo echo "loading buffers"
|
|
20 :argu 3
|
|
21 :.-,$-RangeArguments
|
|
22 :%RangeArguments
|
|
23 :RangeArgumentsAll
|
|
24 :N
|
|
25 :.RangeArguments
|
|
26 :split|split|split|split
|
|
27 :3wincmd w
|
|
28 :.,$RangeWindows
|
|
29 :%RangeWindows
|
|
30 :RangeWindowsAll
|
|
31 :only
|
|
32 :blast|bd
|
|
33 :.,$RangeLoadedBuffers
|
|
34 :%RangeLoadedBuffers
|
|
35 :RangeLoadedBuffersAll
|
|
36 :.,$RangeBuffers
|
|
37 :%RangeBuffers
|
|
38 :RangeBuffersAll
|
|
39 :tabe|tabe|tabe|tabe
|
|
40 :normal 2gt
|
|
41 :.,$RangeTabs
|
|
42 :%RangeTabs
|
|
43 :RangeTabsAll
|
|
44 :1tabonly
|
|
45 :e! test.out
|
|
46 :call append(0, g:lines)
|
|
47 :w|qa!
|
|
48 ENDTEST
|
|
49
|
|
50
|