Lines Matching refs:g
38 g:found_bar = "bar"
45 assert_equal("bar", g:found_bar)
47 unlet g:found_bar
172 g/^xx/s/.*/`=name`
256 g:cond = 'text'
257 if g:cond
263 g:cond = 0
264 if g:cond
272 if g:cond
280 g:cond = 'text'
282 elseif g:cond
302 g:cond = 'text'
303 while g:cond
315 g:res = 42
317 assert_equal(42, g:res)
320 unlet g:res
326 g:res = 0
330 g:res = 12
332 assert_equal(12, g:res)
335 unlet g:res
450 g:shortlist
456 g:shortlist = [1, 2]
458 unlet g:shortlist
501 g:didFunc = 1
503 command Cmd g:didCmd = 1
505 assert_equal(1, g:didCmd)
507 assert_equal(1, g:didFunc)
508 unlet g:didFunc
509 unlet g:didCmd
513 assert_equal(1, g:didCmd)
515 assert_equal(1, g:didFunc)
516 unlet g:didFunc
517 unlet g:didCmd
822 au BufNewFile Xfile g:readFile = 1
823 | g:readExtra = 2
824 g:readFile = 0
825 g:readExtra = 0
827 assert_equal(1, g:readFile)
828 assert_equal(2, g:readExtra)
832 au BufNewFile Xfile g:readFile = 1
833 | g:readExtra = 2
834 | g:readMore = 3
835 g:readFile = 0
836 g:readExtra = 0
837 g:readMore = 0
839 assert_equal(1, g:readFile)
840 assert_equal(2, g:readExtra)
841 assert_equal(3, g:readMore)
844 unlet g:readFile
845 unlet g:readExtra
846 unlet g:readMore
862 au BufNewFile Xfile g:readFile = 1
863 g:readFile = 0
865 assert_equal(1, g:readFile)
867 g:readFile = 0
869 assert_equal(0, g:readFile)
871 unlet g:readFile
885 :8verbose g:verbose_now = &verbose
886 assert_equal(8, g:verbose_now)
887 unlet g:verbose_now
946 g:maybe = true
948 if g:maybe
961 while g:maybe
965 g:maybe = false
1000 g:val = 111
1003 g:val += nr
1008 assert_equal(111 + 3 + 4 + 5, g:val)
1009 unlet g:val
1013 g:caught = 'no'
1017 g:caught = 'yes'
1019 assert_equal('yes', g:caught)
1020 unlet g:caught
1106 :*s/\(foo\|bar\)/baz/g
1117 let g:args = a:000
1123 assert_equal([], g:args)
1126 assert_equal(['one', 'two', 'three'], g:args)
1160 @s = 'g:success = 8'
1163 assert_equal(8, g:success)
1164 unlet g:success
1237 def g:SomeComplFunc(findstart: number, base: string): any
1361 s/from/\=to .. '_' .. also/g#e
1376 g:cond = true
1383 if g:cond
1398 unlet g:cond
1494 g:notexist:cmd
1496 …CheckDefAndScriptFailure2(lines, 'E488: Trailing characters: :cmd', 'E121: Undefined variable: g:n…
1499 g-pat-cmd
1503 g.pat.cmd
1505 CheckDefAndScriptFailure2(lines, 'E1001: Variable not found: g', 'E121: Undefined variable: g', 1)
1539 g /pat/cmd
1543 g #pat#cmd
1547 g#pat#cmd
1551 g# pat#cmd