Tuesday, September 14, 2021

Re: Sort lines, then tag, then unsort

On Di, 14 Sep 2021, Julius Hamilton wrote:

> I would like to sort lines in a text document and then tag them, and then revert the file to its original order.
>
> First of all, is there a way to tag a line, so that lines with a given tag can be quickly referred to, but the tag is not in the actual text?

I think this can be done using text-properties.
Have a look at :h text-prop-intro

Best,
Christian
--
Ungleich den Franzosen und Engländern, loben die Deutschen nichts (an
einem Autor, Menschen), ohne alles zu loben; sie glauben parteiisch
sein zu müssen.
-- Jean Paul

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210914121742.GB2645325%40256bit.org.

No comments: