Hi Adrien!

On Mo, 13 Jun 2011, Adrien "Axioplase" Piérard wrote:

> 1/ It is very annoying that when one is moving in a concealed line,
> motions consider the underlying text rather that what can be seen. For
> example, suppose I have
> >> $\lambda 42$
> which will be rendered as
> >> $λ 42$
> and that my cursor is on the first dollar.  To move to the space, I
> wish I could just do "<Right><Right>", but instead, I'll have to do
> '<Right>' eight times; this is very inconvenient.
> (Of course, I could do "f<space>" or any other thing to achieve the
> expected motion, but this not my point here.)
> A nice behaviour would be that, when a line is concealed, motions work
> on the visible text, and that if I press, say, "x" when the cursor in
> on "λ", then it would delete the first character of "\lambda" and thus
> unconceal this now unrecognised word.

I started working on a patch, that would make this possible. But it's 
not that easy and it didn't seem like this feature would be applied to 
vim anytime soon, so I didn't continue.

My main usecase was to implement some kind of vertical folding using 
concealing.


regards,
Christian

-- 
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

Raspunde prin e-mail lui