~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/testdir/test_listlbr.in

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
:       $put =g:line
25
25
:       wincmd p
26
26
:endfu
 
27
:"
27
28
:let g:test="Test 1: set linebreak"
28
29
:redraw!
29
30
:let line=ScreenChar(winwidth(0))
30
31
:call DoRecordScreen()
 
32
:"
31
33
:let g:test="Test 2: set linebreak + set list"
32
34
:set linebreak list listchars=
33
35
:redraw!
34
36
:let line=ScreenChar(winwidth(0))
35
37
:call DoRecordScreen()
 
38
:"
36
39
:let g:test ="Test 3: set linebreak nolist"
37
40
:set nolist linebreak
38
41
:redraw!
39
42
:let line=ScreenChar(winwidth(0))
40
43
:call DoRecordScreen()
 
44
:"
41
45
:let g:test ="Test 4: set linebreak with tab and 1 line as long as screen: should break!"
42
46
:set nolist linebreak ts=8
43
47
:let line="1\t".repeat('a', winwidth(0)-2)
51
55
:$put =line
52
56
:$
53
57
:norm! zt
 
58
:"
54
59
:let g:test ="Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)"
55
60
:set cpo&vim list linebreak conceallevel=2 concealcursor=nv listchars=tab:ab
56
61
:syn match ConcealVar contained /_/ conceal
58
63
:let line=ScreenChar(winwidth(0))
59
64
:call DoRecordScreen()
60
65
:set cpo&vim linebreak
 
66
:"
61
67
:let g:test ="Test 6: set linebreak with visual block mode"
62
68
:let line="REMOVE: this not"
63
69
:$put =g:test
67
73
:1/^REMOVE:
68
74
0jf x:$put
69
75
:set cpo&vim linebreak
 
76
:"
70
77
:let g:test ="Test 7: set linebreak with visual block mode and v_b_A"
71
78
:$put =g:test
72
79
Golong line: 40afoobar aTARGET at end
73
80
:exe "norm! $3B\<C-v>eAx\<Esc>"
74
81
:set cpo&vim linebreak sbr=
 
82
:"
75
83
:let g:test ="Test 8: set linebreak with visual char mode and changing block"
76
84
:$put =g:test
77
85
Go1111-1111-1111-11-1111-1111-11110f-lv3lc2222bgj.
 
86
:"
 
87
:let g:test ="Test 9: using redo after block visual mode"
 
88
:$put =g:test
 
89
Go
 
90
aaa
 
91
aaa
 
92
a2k2j~e.
 
93
:"
 
94
:let g:test ="Test 10: using normal commands after block-visual"
 
95
:$put =g:test
 
96
:set linebreak
 
97
Go
 
98
abcd{ef
 
99
ghijklm
 
100
no}pqrs2k0f{c%
 
101
:"
 
102
:let g:test ="Test 11: using block replace mode after wrapping"
 
103
:$put =g:test
 
104
:set linebreak wrap
 
105
Go150aayypk147|jr0
 
106
:"
 
107
:let g:test ="Test 12: set linebreak list listchars=space:_,tab:>-,tail:-,eol:$"
 
108
:set list listchars=space:_,trail:-,tab:>-,eol:$
 
109
:$put =g:test
 
110
:let line="a aaaaaaaaaaaaaaaaaaaaaa\ta "
 
111
:$put =line
 
112
:$
 
113
:norm! zt
 
114
:redraw!
 
115
:let line=ScreenChar(winwidth(0))
 
116
:call DoRecordScreen()
78
117
:%w! test.out
79
118
:qa!
80
119
ENDTEST