Monday, September 20, 2021

Re: Sort lines, then tag, then unsort

I think the plugin you need is https://github.com/kshenoy/vim-signature

Christian Brabandt <cblists@256bit.org> 于2021年9月14日周二 下午8:17写道:

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.


--
王子陌
James Wang
+86 178-5314-3397

--
--
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/CABiu85CSJtOUN2w8G3PNBNENGcy%3DCG4QaxqvZPFyeAGW_p%3Dcsg%40mail.gmail.com.

No comments: