Bram, consider this: vim -u NONE -N ~/.vim/vimrc :syn on :set conceallevel=1 concealcursor=n :syn match MyConceal /s/ containedin=ALL conceal
Note, that the 's' will be set to '-'. This is different than expected: ,----[ :h 'conceallevel' ]- | Determine how text with the "conceal" syntax attribute | |:syn-conceal| | is shown: | | Value Effect ~ | 0 Text is shown normally | 1 Each block of concealed text is replaced with one | character. If the syntax item does not have a custom | replacement character defined (see |:syn-cchar|) the | character defined in 'listchars' is used (default is a | space). | It is highlighted with the "Conceal" highlight group. | 2 Concealed text is completely hidden unless it has a | custom replacement character defined (see | |:syn-cchar|). | 3 Concealed text is completely hidden. `---- According to the documentation, all 's' should be set to spaces, but since in globals.h lcs_conceal is initialized with '-' the hyphen will be used. We should either adjust the documentation, or set the default for listchars to "eol:$,conceal:-" Best, Christian -- Was man nicht begreift, verlernt man nie! -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
