annotate src/testdir/test_listchars.in @ 10581:dffda1f9b501 v8.0.0180

patch 8.0.0180: error E937 is used twice commit https://github.com/vim/vim/commit/83381f7129aca00bc2dd24527f160bc6a60d70af Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 14 14:36:08 2017 +0100 patch 8.0.0180: error E937 is used twice Problem: Error E937 is used both for duplicate key in JSON and for trying to delete a buffer that is in use. Solution: Rename the JSON error to E938. (Norio Takagi, closes #1376)
author Christian Brabandt <cb@256bit.org>
date Sat, 14 Jan 2017 14:45:04 +0100
parents 095b538d58a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6777
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for 'listchars' display with 'list' and :list
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
6824
095b538d58a6 patch 7.4.733
Bram Moolenaar <bram@vim.org>
parents: 6777
diff changeset
5 :set ff=unix
6777
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :let g:lines = []
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :function GetScreenCharsForLine(lnum)
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 : return join(map(range(1, virtcol('$')), 'nr2char(screenchar(a:lnum, v:val))'), '')
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :endfunction
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :nnoremap <expr> GG ":call add(g:lines, GetScreenCharsForLine(".screenrow()."))\<CR>"
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :set listchars+=tab:>-,space:.,trail:<
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :set list
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 /^start:/
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :normal! jzt
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 GGH:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :set listchars-=trail:<
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 GG
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 GG:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :put =g:lines
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :'[,']w! test.out
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 ENDTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 start:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 aa
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 bb
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 cccc
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 dd ee
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 STARTTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 :set listchars+=trail:<
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 :set nolist
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 /^start:/
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 :redir! >> test.out
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 :+1,$list
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 :redir END
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 :q!
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 ENDTEST
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 start:
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 fff
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 gg
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 h
a8962f0e0d34 patch 7.4.710
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 iii