sponsor Vim development Vim logo Vim Book Ad

RemoveDups.VIM : Removing duplicates

 script karma  Rating 13/15, Downloaded by 966  Comments, bugs, improvements  Vim wiki

created by
Michael Fitz
 
script type
utility
 
description
After sorting a file (eg. with the very useful vissort.vim) you can mark an area (line- or blockwise) an remove any lines containing duplicate values within this mark, so making anything in the marked area uinique.

Ths most common use is:
mark a block
:Sort it
Remark the same block using gv
:call RemoveDups()
 
install details
copy it into plugins

If you like you can add a command invoking it; I haven't done yet.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
RemoveDups.VIM 1 2008-05-19 6.0 Michael Fitz Initial upload
ip used for rating: 216.73.216.46

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github