annotate src/testdir/test_command_count.in @ 6426:f673842874b6 v7.4.543

updated for version 7.4.543 Problem: Since patch 7.4.232 "1,3s/\n//" joins two lines instead of three. (Eliseo Mart?nez) Issue 287 Solution: Correct the line count. (Christian Brabandt) Also set the last used search pattern.
author Bram Moolenaar <bram@vim.org>
date Sat, 13 Dec 2014 03:17:11 +0100
parents de877dab1c31
children 82c6a3bddb23
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6424
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test for user command counts vim: set ft=vim :
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :let g:lines = []
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :so tiny.vim
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :com -range RangeLines :call add(g:lines, 'Rangeg:Lines '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :com -range -addr=arguments RangeArguments :call add(g:lines, 'RangeArguments '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :com -range=% -addr=arguments RangeArgumentsAll :call add(g:lines, 'RangeArgumentsAll '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :com -range -addr=loaded_buffers RangeLoadedBuffers :call add(g:lines, 'RangeLoadedBuffers '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :com -range=% -addr=loaded_buffers RangeLoadedBuffersAll :call add(g:lines, 'RangeLoadedBuffersAll '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :com -range -addr=buffers RangeBuffers :call add(g:lines, 'RangeBuffers '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :com -range=% -addr=buffers RangeBuffersAll :call add(g:lines, 'RangeBuffersAll '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :com -range -addr=windows RangeWindows :call add(g:lines, 'RangeWindows '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :com -range=% -addr=windows RangeWindowsAll :call add(g:lines, 'RangeWindowsAll '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :com -range -addr=tabs RangeTabs :call add(g:lines, 'RangeTabs '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :com -range=% -addr=tabs RangeTabsAll :call add(g:lines, 'RangeTabsAll '.<line1>.' '.<line2>)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :set hidden
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :arga a b c d
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :argdo echo "loading buffers"
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :argu 3
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :.-,$-RangeArguments
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :%RangeArguments
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :RangeArgumentsAll
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :N
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :.RangeArguments
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :split|split|split|split
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :3wincmd w
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :.,$RangeWindows
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :%RangeWindows
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :RangeWindowsAll
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :only
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :blast|bd
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :.,$RangeLoadedBuffers
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :%RangeLoadedBuffers
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :RangeLoadedBuffersAll
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 :.,$RangeBuffers
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 :%RangeBuffers
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 :RangeBuffersAll
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 :tabe|tabe|tabe|tabe
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 :normal 2gt
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 :.,$RangeTabs
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :%RangeTabs
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 :RangeTabsAll
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 :1tabonly
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 :e! test.out
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 :call append(0, g:lines)
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 :w|qa!
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 ENDTEST
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49
de877dab1c31 updated for version 7.4.542
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50