Using Vim and ! commands

Daniel B. Thurman dant at cdkkt.com
Fri Apr 18 17:31:36 UTC 2008


Bill Crawford wrote:
|On 18/04/2008, Daniel B. Thurman <dant at cdkkt.com> wrote:
|
|> :!cat <current-buffer OR current-file> | sort | uniq
|>
|> where <current-buffer> OR current-file is used
|>
|> Is there a special keyword that I can use for the
|> <current-buffer> or <current-filename>?
|
|Yes, ":%!sort -u" which will do all of what you want.

Ah! Thanks!

One other issue:  How to I search for patterns NOT in the list

I thought it was something like:

:g/^[^.]/d

For deleting lines NOT containing '.'?
Boy, I am getting a bit rusty!


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.1/1384 - Release Date: 4/17/2008 3:47 PM
 




More information about the fedora-list mailing list