Mercurial > vim
view src/testdir/test_listchars.in @ 9070:0bb25b026fc9 v7.4.1820
commit https://github.com/vim/vim/commit/9ccaae04c6f263e6db14fc403bca2404a7871114
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 7 18:36:48 2016 +0200
patch 7.4.1820
Problem: Removing language from help tags too often.
Solution: Only remove @en when not needed. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 07 May 2016 18:45:05 +0200 |
parents | 095b538d58a6 |
children |
line wrap: on
line source
Tests for 'listchars' display with 'list' and :list STARTTEST :so small.vim :set ff=unix :let g:lines = [] :function GetScreenCharsForLine(lnum) : return join(map(range(1, virtcol('$')), 'nr2char(screenchar(a:lnum, v:val))'), '') :endfunction :nnoremap <expr> GG ":call add(g:lines, GetScreenCharsForLine(".screenrow()."))\<CR>" :set listchars+=tab:>-,space:.,trail:< :set list : /^start:/ :normal! jzt GG GG GG GG GGH: :set listchars-=trail:< GG GG GG GG GG: :put =g:lines :'[,']w! test.out ENDTEST start: aa bb cccc dd ee STARTTEST :set listchars+=trail:< :set nolist : /^start:/ :redir! >> test.out :+1,$list :redir END :q! ENDTEST start: fff gg h iii