Home
last modified time | relevance | path

Searched refs:two (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/vim-8.2.3635/src/testdir/
H A Dtest_method.vim42 let d = #{one: 1, two: 2, three: 3}
51 call assert_equal(2, d->get('two'))
54 call assert_true(d->has_key('two'))
57 call assert_equal(['one', 'two', 'three'], d->keys())
63 call assert_equal(2, d->remove("two"))
64 let d.two = 2
88 eval ['one', 'two', 'three']->append(1)
94 eval ['one', 'two', 'three']->appendbufline(bnr, 1)
101 func Concat(one, two, three) argument
102 return a:one .. a:two .. a:three
[all …]
H A Dtest_listener.vim22 call setline(1, ['one', 'two'])
31 call append(2, 'two two')
35 " the two changes are not merged
40 call setline(1, ['one one', 'two'])
65 call append(2, 'two two')
80 call append(1, 'two two')
89 call append(0, 'two two')
94 call assert_equal('two two', s:text)
156 call setline(1, ['one', 'two'])
169 " two disconnected changes
[all …]
H A Dtest_textformat.vim817two three ’ four
945 call setline(1, ['one ', 'two'])
985 call setline(1, ['one two three four', 'five six', 'one two'])
991 call setline(1, ['one two three four', 'five six', 'one two'])
1006 call setline(1, [' 1) one two three four', ' 2) two'])
1008 call assert_equal([' 1) one two', ' three', ' four', ' 2) two'],
1020 call setline(1, [' - one two three', ' - two'])
1022 call assert_equal([' - one', ' two', ' three', ' - two'],
1035 call setline(1, 'one two three four')
1041 call setline(1, 'one two three four')
[all …]
H A Dtest_listchars.vim413 " use different values for 'listchars' items in two different windows
414 call setline(1, ["\t one two "])
420 call assert_equal(['+------+^^one>>two<<%'], ScreenLines(1, virtcol('$')))
424 call assert_equal(['<------>__one..two@@#'], ScreenLines(1, virtcol('$')))
427 call assert_equal(['<------>__one..two@@#'], ScreenLines(1, virtcol('$')))
434 call setline(1, ["\t one two "])
441 call assert_equal(['<------>__one..two@@#'], ScreenLines(1, virtcol('$')))
443 call assert_equal(['+------+^^one>>two<<%'], ScreenLines(1, virtcol('$')))
445 call assert_equal(['{......}--one==two##$'], ScreenLines(1, virtcol('$')))
454 call assert_equal(['^I one two $'], ScreenLines(1, virtcol('$')))
[all …]
H A Dtest_window_id.vim9 split two
12 let w:two = 'two'
27 call assert_equal("two", expand("%"))
39 call assert_equal('two', getwinvar(id2, 'two'))
51 call settabwinvar(1, id2, 'two', '2')
56 call assert_equal('2', getwinvar(id2, 'two'))
71 call assert_equal("two", expand("%"))
H A Dtest_cpoptions.vim117 call writefile(["two\tXfile2\t/^two$/"], 'Xdir/tags')
400 call setline(1, ['', 'one', 'two', 'three', 'one', 'two', 'three'])
418 call writefile(['two'], 'Xfile')
473 exe "normal ggc/two\<CR>abc "
480 exe "normal ggc/two\<CR>abc "
620 call setline(1, ['one', 'two'])
626 call setline(1, ['one', 'two'])
630 call assert_equal("two\n", @")
666 call setline(1, 'one two three')
762 call setline(1, 'one two')
[all …]
H A Dtest_vim9_expr.vim34 assert_equal('two', false ? 'one' : 'two')
35 assert_equal('two', 0 ? 'one' : 'two')
37 assert_equal('two', !!0.0 ? 'one' : 'two')
39 assert_equal('two', !!'' ? 'one' : 'two')
40 assert_equal('two', !!0z ? 'one' : 'two')
41 assert_equal('two', !![] ? 'one' : 'two')
42 assert_equal('two', !!{} ? 'one' : 'two')
44 assert_equal('two', name ? 'one' : 'two')
2440 assert_equal({one: 'one', two: 'two'}, d)
2705 two: 'two',
[all …]
H A Dtest_comments.vim214 call setline(1, ['one', '/* two */', 'three'])
216 call assert_equal(['one', '/* two */', 'three'], getline(1, '$'))
224 call feedkeys("a- one\n- two\n", 'xt')
225 call assert_equal(['- one', '- two', ''], getline(1, '$'))
234 call assert_equal(['one two', ''], getline(1, '$'))
238 call assert_equal(['one', 'two', ''], getline(1, '$'))
266 call setline(1, ['- one two', 'three'])
268 call assert_equal(['- one two three'], getline(1, '$'))
271 call setline(1, ['- one', '- two'])
273 call assert_equal(['- one', '- two'], getline(1, '$'))
H A Dtest_wordcount.vim15 call append(1, 'one two three')
22 call append(1, 'one two three')
30 call append(1, 'one two three')
38 call append(1, ['one two three', 'one two three', 'one two three'])
45 call append(1, 'one two three')
H A Dtest_ruby.vim16 call setline(1, ['one', 'two', 'three'])
23 call setline(1, ['one', 'two', 'three'])
31 call setline(1, ['one', 'two', 'three', 'four'])
71 call setline(1, ['one', 'two', 'three'])
98 call setline(1, ['one', 'two', 'three'])
113 ruby $curbuf.append(1, 'two')
129 call setline(1, ['one', 'two', 'three'])
142 call setline(1, ['one', 'two', 'three'])
151 call setline(1, ['one', 'two'])
153 call assert_equal('two', rubyeval('$curbuf[2]'))
[all …]
H A Dtest_assert.vim59 call assert_equal(0, assert_equal(#{one: 1, two: 2}, #{two: 2, one: 1}))
61 call assert_equal(1, assert_equal(#{one: 1, two: 2}, #{two: 2, one: 3}))
65 call assert_equal(1, assert_equal(#{one: 1, two: 2}, #{two: 22, one: 11}))
66 call assert_match("Expected {'one': 1, 'two': 2} but got {'one': 11, 'two': 22}", v:errors[0])
69 call assert_equal(1, assert_equal(#{}, #{two: 2, one: 1}))
70 call assert_match("Expected {} but got {'one': 1, 'two': 2}", v:errors[0])
73 call assert_equal(1, assert_equal(#{two: 2, one: 1}, #{}))
74 call assert_match("Expected {'one': 1, 'two': 2} but got {}", v:errors[0])
83 let goodtext = ["one", "two", "three"]
366 call setline(1, ['line one', 'line two'])
H A Dtest_modeless.vim19 call setline(1, ['one two three', 'foo bar baz'])
63 call assert_equal("ne two th", @*, msg)
79 call assert_equal("e two thr", @*, msg)
92 call assert_equal("e two t", @*, msg)
118 call assert_equal(" two three\nfoo bar ", @*, msg)
131 call assert_equal("two three\nfoo bar", @*, msg)
254 call setline(1, ['one two three', 'foo bar baz'])
273 call assert_equal("two three", @*, msg)
314 call assert_equal("two three\nfoo bar", @*, msg)
334 call setline(1, ['one two three', 'foo bar baz'])
[all …]
H A Dtest_maparg.vim88 var two: string = maparg('{', 'n')
89 assert_equal('w', two)
201 inoremap K one\<CR>two
203 call assert_equal('one<CR>two', getline(1))
207 call assert_equal('one\<CR>two', orig.rhs)
216 call assert_equal('one<CR>two', getline(1))
221 inoremap K one<CR>two
223 call assert_equal('one<CR>two', getline(1))
227 call assert_equal("one\x16<CR>two", orig.rhs)
236 call assert_equal('one<CR>two', getline(1))
H A Dtest_usercommands.vim120 TestFArgs one two three
123 TestFArgs one\\two three
126 TestFArgs one\ two three
129 TestFArgs one\"two three
141 TestQArgs one two three
142 call assert_equal(['one two three'], g:args)
144 TestQArgs one\\two three
147 TestQArgs one\ two three
150 TestQArgs one\"two three
409 args one two three
[all …]
H A Dtest_textprop.vim32 call prop_type_add('two', {})
36 call prop_type_delete('two')
105 call prop_type_add('two', {})
112 call prop_type_delete('two')
118 call setline(1, 'one two three')
346 call setline(1, ['one one one', 'two two two', 'six six six', 'ten ten ten'])
876 call setline(1, ['one one', 'two two', 'three three', 'four four', 'five'])
892 call setline(2, 'two three')
897 call search('^two')
903 call search('two \zsthree')
[all …]
H A Dtest_undo.vim103 new two
116 " Setting local value in "two" must not change local value in "one"
179 :" Jump two seconds and go some seconds forward and backward
286 call assert_equal(['one one one', 'two', 'two', 'three'], getline(1, '$'))
288 call assert_equal(['one one one', 'two', 'two'], getline(1, '$'))
296 call assert_equal(['one one one', 'two', 'two'], getline(1, '$'))
298 call assert_equal(['one one one', 'two', 'two', 'three'], getline(1, '$'))
585 call setbufline('%', 1, ['one', 'two', 'three', 'four', 'five', 'six',
604 call assert_equal(['one', 'two', 'six', 'seven', 'eight', 'nine', 'ten'],
739 for [i, v] in [[1, 'one'], [2, 'two'], [3, 'three'],
[all …]
H A Dtest_fold.vim577 call setline(1, ['one }}}', 'two'])
580 call setline(1, ['one }}}4', 'two'])
900 call setline(1, ['one', 'two', 'three'])
1054 \ a:fs .. a:fo .. ' two ',
1064 \ a:fs .. a:fo .. ' two ',
1082 \ a:fo .. ' two ',
1094 \ a:fo .. 'two ',
1109 \ a:fs .. a:fo .. ' 2 two ',
1147 \ '9> two '
1152 \ '89 two '
[all …]
H A Dtest_diffmode.vim201 let l[20] = 'two'
211 call assert_equal('two', getline(21))
340 new two
342 let l[20] = 'two'
394 new two
436 botright vert new two
470 call setline(1, ["One \t", 'Two', 'Three', 'one two', 'one two', 'Four'])
475 botright vert new two
561 botright vert new two
584 botright vert new two
[all …]
H A Dtest_matchfuzzy.vim19 call assert_equal(['one'], matchfuzzy(['one', 'two'], 'one'))
33 …call assert_equal(['onetwo', 'one_two', 'one two'], ['onetwo', 'one_two', 'one two']->matchfuzzy('…
51 call assert_equal([], ['foo bar baz', 'foo', 'foo bar', 'baz bar']->matchfuzzy('one two'))
56 …call assert_equal([#{text: 'two one'}], [#{text: 'one two'}, #{text: 'two one'}]->matchfuzzy('two
129 … assert_equal([[], [], []], ['foo bar baz', 'foo', 'foo bar', 'baz bar']->matchfuzzypos('one two'))
H A Dtest_join.vim5 call setline(1, ['one', 'two', 'three', 'four'])
7 call assert_equal('one two', getline(1))
9 call setline(1, ['one', 'two', 'three', 'four'])
11 call assert_equal('one two three four', getline(1))
13 call setline(1, ['one', '', 'two'])
17 call setline(1, ['one', ' ', 'two'])
21 call setline(1, ['one', '', '', 'two'])
25 call setline(1, ['one', ' ', ' ', 'two'])
29 call setline(1, ['one', '', '', 'two'])
H A Dtest_filter_map.vim122 let din = #{one: 1, two: 2}
124 call assert_equal(#{one: 1, two: 2}, din)
125 call assert_equal(#{one: '1', two: '2'}, dout)
127 const dconst = #{one: 1, two: 2, three: 3}
128 call assert_equal(#{one: 2, two: 3, three: 4}, mapnew(dconst, {_, v -> v + 1}))
/vim-8.2.3635/runtime/doc/
H A Dusr_08.txt8 Display two different files above each other. Or view two locations in the
50 The two windows allow you to view two parts of the same file. For example,
87 :split two.c
92 |/* file two.c */ |
95 |two.c=============================|
170 :vsplit two.c
223 |/* file two.c */ |
316 vim -o one.txt two.txt three.txt
324 |file two.txt |
326 |two.txt========================|
[all …]
H A Dusr_32.txt53 two changes, numbered 1 and 2, and three states of the text:
63 one two ~
76 one two me too ~
95 So how do you get to "one two" now? You can use this command: >
99 The text is now "one two", you are below change 2. You can use the |:undo|
112 one two me too ~
116 not two ~
124 one two ~
131 one two ~
133 not two ~
[all …]
H A Dundo.txt193 one two three ~
196 ne two three ~
197 e two three ~
198 two three ~
201 e two three ~
202 ne two three ~
203 one two three ~
213 two three ~
217 e two three ~
218 ne two three ~
[all …]
/vim-8.2.3635/src/
H A Darabic.c266 arabic_maycombine(int two) in arabic_maycombine() argument
269 return (two == a_ALEF_MADDA in arabic_maycombine()
270 || two == a_ALEF_HAMZA_ABOVE in arabic_maycombine()
271 || two == a_ALEF_HAMZA_BELOW in arabic_maycombine()
272 || two == a_ALEF); in arabic_maycombine()
283 int two) // character just after "one" in arabic_combine() argument
286 return arabic_maycombine(two); in arabic_combine()

12345678910>>...15