Wednesday, January 14, 2015

conceal and wrapping

Given a line longer than the screen width so that it wraps at the
screen edge, is it expected that concealing the first part of a line
moves the line to the left but does not change the point in the line
where it wraps?

I've written an after/syntax/qf.vim plugin that uses conceal to hide
the common prefixes of file names in the quickfix window so that the
text found by :grep wraps less often. So for example, the quickfix
window containing the results of grepping the Vim source for "main"
includes this line (which wraps after the 'w' in an 80-character
terminal):

src/vim-7.4/vim/src/INSTALL|134| work very well and there was no maintainer it w
as dropped.

When the leading portion is concealed, it looks like this:

?/src/INSTALL|134| work very well and there was no maintainer it w
as dropped.

I would expect it to look like this instead, which is not wrapped:

?/src/INSTALL|134| work very well and there was no maintainer it was dropped.

(I actually use an ellipsis and not a question mark as the cchar,
but not everyone's terminal can display an ellipsis.)

I am running Vim 7.4.579.

Regards,
Gary

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: