Lines Matching refs:set

29   set nomodifiable
30 call assert_fails('tcldo set line "abc"',
32 set modifiable
41 2,3tcldo set line [string toupper $line]
59 call assert_equal(b1, TclEval('set ::vim::current(buffer)'))
65 call assert_equal(b2, TclEval('set ::vim::current(buffer)'))
112 set cc=3,5
138 set cc&
157 tcl set foo 123
158 call assert_equal('321', TclEval('::vim::command "tcl set foo 321"'))
159 call assert_equal('123', TclEval('set foo'))
180 let w2 = TclEval('set ::vim::current(window)')
182 let w1 = TclEval('set ::vim::current(window)')
212 " Test $win height (get and set window height)
229 " Test $win cursor (get and set cursor)
233 tcl set win $::vim::current(window)
241 tcl set ::vim::lbase 0
247 tcl set ::vim::lbase 1
253 tcl array set here [$win cursor]
265 tcl array set pos {1 2}
267 tcl array set pos {row '' abc 2}
269 tcl array set pos {row 1 abc 2}
271 tcl array set pos {row 1 column ''}
287 tcl set b2 $::vim::current(buffer)
288 tcl set w2 $::vim::current(window)
290 tcl set b1 $::vim::current(buffer)
291 tcl set w1 $::vim::current(window)
293 call assert_equal(TclEval('set b1'), TclEval('$w1 buffer'))
294 call assert_equal(TclEval('set b2'), TclEval('$w2 buffer'))
310 tcl set w2 $::vim::current(window)
312 tcl set w1 $::vim::current(window)
333 tcl set w2 $::vim::current(window)
335 tcl set w1 $::vim::current(window)
351 tcl set w2 $::vim::current(window)
353 tcl set w1 $::vim::current(window)
374 tcl $::vim::current(window) delcmd [list set msg "window deleted"]
375 call assert_fails('tcl set msg', "can't read \"msg\": no such variable")
377 call assert_equal('window deleted', TclEval('set msg'))
422 tcl set ::vim::lbase 0
429 tcl set ::vim::lbase 1
451 set nomodifiable
454 set modifiable
462 tcl set buf $::vim::current(buffer)
481 tcl set buf $::vim::current(buffer)
497 set nomodifiable
500 set modifiable
506 " Test $buf set (replacing line(s) in a buffer)
510 tcl $::vim::current(buffer) set 2 a
514 tcl $::vim::current(buffer) set 3 4 b
516 tcl $::vim::current(buffer) set 4 3 c
520 tcl $::vim::current(buffer) set 2 3 {x y z}
522 tcl $::vim::current(buffer) set 3 2 {X Y Z}
525 call assert_fails('tcl $::vim::current(buffer) set 0 "x"', 'line number out of range')
526 call assert_fails('tcl $::vim::current(buffer) set 6 "x"', 'line number out of range')
528 call assert_fails('tcl $::vim::current(buffer) set', 'wrong # args:')
529 call assert_fails('tcl $::vim::current(buffer) set 1 2 {[list "a" "b"]}',
533 set nomodifiable
534 call assert_fails('tcl $::vim::current(buffer) set 1 "x"',
536 call assert_fails('tcl $::vim::current(buffer) set 1 {a b}',
538 call assert_fails('tcl $::vim::current(buffer) set 1 2 {a b}',
540 set modifiable
548 tcl set buf $::vim::current(buffer)
589 call assert_fails('tcl $::vim::current(buffer) mark z', 'mark not set')
596 " Test $buf option (test and set option in context of a buffer)
599 tcl set b1 $::vim::current(buffer)
601 tcl set b2 $::vim::current(buffer)
615 set foldcolumn&
624 tcl set b1 $::vim::current(buffer)
628 tcl set b2 $::vim::current(buffer)
643 tcl $::vim::current(buffer) delcmd [list set msg "buffer deleted"]
645 call assert_fails('tcl set msg', "can't read \"msg\": no such variable")
647 call assert_equal('buffer deleted', TclEval('set msg'))
671 tcl set bar_wl [$::vim::current(buffer) windows]
673 tcl set foo_wl [$::vim::current(buffer) windows]
687 call writefile(['set pi [format "%.2f" [expr acos(-1.0)]]'], 'Xtcl_file')
691 call assert_equal('3.14', TclEval('set pi'))
713 tcl set foo "foo"
718 call assert_fails('tcl set foo', "can't read \"foo\": no such variable")
719 tcl set bar "bar"
720 call assert_equal('bar', TclEval('set bar'))