On Saturday, April 18, 2015 at 10:33:52 PM UTC+3, ZyX wrote: > 2015-04-18 19:11 GMT+03:00 Bidit Mazumder: > > On Saturday, April 18, 2015 at 2:59:26 PM UTC+3, Christian Brabandt wrote: > >> On Sa, 18 Apr 2015, Christian Brabandt wrote: > >> > >> > We could probably add a flag to 'cpoptions' to change this behaviour, > >> > but we wouldn't change the behaviour by default, since this would be > >> > backward incompatible (and in fact I have gotten used to it and like it > >> > that way). > >> > >> I made a patch: > >> https://github.com/chrisbra/vim-mq-patches/blob/master/cpo_changeword > >> > >> Mit freundlichen Grüßen > >> Christian > >> -- > >> Mit den Ansichten, wenn sie aus der Welt verschwinden, gehen > >> oft die Gegenstände selbst verloren. Kann man doch im höheren Sinne > >> sagen, dass die Ansicht der Gegenstand sei. > >> -- Goethe, Maximen und Reflektionen, Nr. 1073 > > > > Thanks for the patch! > > > > Conceal will not show line terminators, because "\r" does not match CR, and > > "\n" does not match LF. For example this will not work: > > > > set conceallevel=2 concealcursor=nciv > > syntax match CR "\r" conceal cchar=→ > > `\r` *does* match <CR> (<C-m> I was talking about earlier is <CR>, > like <C-j> is <LF>). Just you cannot possibly put this into the vimrc > because all syntax elements are cleared when new buffer is > read/created to be populated by those from syntax/{syntax}.vim or > syntax/{syntax}/*.vim. You need to run syntax definition on `autocmd > Syntax *` *and* put this after statements like `filetype * on` and > `syntax on`/`syntax enable`. > > Also when you try something like this you must be aware that > > 1. If <CR> appears inside some other syntax element this definition > will be ignored. You need to repeat it with `contained > containedin=ALL`. > 2. If line terminators are not mixed then <CR> is a part of line break > and is not present in the in-memory buffer representation and thus > cannot be matched. > 3. Adding syntax rules always have potential of breaking another > syntax rules. Specifically with <CR> this is very much unlikely. > > > syntax match LF "\n" conceal cchar=↓ > > You can use > > syntax match LF /\%x0D/ conceal cchar=↓ > > . Will work only for &fileformat is# 'mac', because other &fileformat > values consider it being end of line. > > (Don’t ask me why LF which is <C-j> is represented as \%x0D in this > case while it should be \%x0A.) > > > hi clear Conceal > > hi Conceal > > > > -- > > -- > > 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. > > For more options, visit https://groups.google.com/d/optout.
Thanks for explaining it to me. -- -- 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.
