blob: d84a14062b2052d804a581eb14fa32af813c9a9d [file] [log] [blame]
Bram Moolenaarf8eb9c52017-01-02 17:31:24 +01001" Tests for various Visual mode.
Bram Moolenaar019b9c62016-03-05 17:26:00 +01002if !has('visual')
3 finish
4endif
5
6func Test_block_shift_multibyte()
Bram Moolenaarf8eb9c52017-01-02 17:31:24 +01007 " Uses double-wide character.
8 if !has('multi_byte')
9 return
10 endif
Bram Moolenaar019b9c62016-03-05 17:26:00 +010011 split
12 call setline(1, ['xヹxxx', 'ヹxxx'])
13 exe "normal 1G0l\<C-V>jl>"
14 call assert_equal('x ヹxxx', getline(1))
15 call assert_equal(' ヹxxx', getline(2))
16 q!
17endfunc
Bram Moolenaarf8eb9c52017-01-02 17:31:24 +010018
19func Test_dotregister_paste()
20 new
21 exe "norm! ihello world\<esc>"
22 norm! 0ve".p
23 call assert_equal('hello world world', getline(1))
24 q!
25endfunc