Yes, it's that simple. You could create a range in advance, such as 'a,. (from mark 'a' to the current line) or you could create one on-the-fly using visual selection by pressing ':' in visual mode, after selecting the text you wish to sort, to get a range of '<,'> on the command line. If you like using an external sort utility instead, you can do it just as easily. For example, Unix sort, removing duplicate lines: :{range}!sort -u
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - Yes, it's that simple. You could create a range in advance, such as 'a,. (from mark 'a' to the current line) or you could create one on-the-fly using visual selection by pressing ':' in visual mode, after selecting the text you wish to sort, to get a range of '<,'> on the command line. If you like using an external sort utility instead, you can do it just as easily. For example, Unix sort, removing duplicate lines: :{range}!sort -u
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Author
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
Rating
| |
abstract
| - Yes, it's that simple. You could create a range in advance, such as 'a,. (from mark 'a' to the current line) or you could create one on-the-fly using visual selection by pressing ':' in visual mode, after selecting the text you wish to sort, to get a range of '<,'> on the command line. If you like using an external sort utility instead, you can do it just as easily. For example, Unix sort, removing duplicate lines: :{range}!sort -u Many other systems also have an external sort utility, but the options and capabilities will differ. It is probably better to use the built-in Vim sort unless you are looking for a specific feature of the external sort (or using an old Vim without the :sort command).
|