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?
Secondly, I noticed with my sort command ":sort \^[A-Z].*[^\.]$\ r" (sort all lines beginning with a capital letter and not ending in a period) it sends the matches in alphabetical order to the bottom of the file. Is there a way to specify a second-order sort by which all the matches are sub-sorted, rather than the default alphabetical? And, is there a way to send them to the top of the document rather than the bottom?
Thanks very much,
Julius
--
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/CAEsMKX2btY6zAjVE0PRcJHhtoC58MK1xA5LMAwLgHgfThgeX-Q%40mail.gmail.com.
No comments:
Post a Comment