sponsor Vim development Vim logo Vim Book Ad

ddldbl.vim : Delete Duplicate Lines and Delete Blank Lines.

 script karma  Rating 86/47, Downloaded by 2651    Comments, bugs, improvements  Vim wiki

created by
Robert KellyIV
 
script type
ftplugin
 
description
This is just a normal ol plugin; NOT ftplugin (there really should be a plugin option in the type field when adding a new script... *hint* *hint* :) )

This is a quick/simple implimtation to delete duplicate lines (:DDL) and delete blank lines (:DBL)

Both commands can take a range and DEFAULT TO THE ENTIRE FILE.
Both of these commands delete lines so be carefull!

:DBL (delete blank lines) is little more than a command front end to a :g command.
:DDL (delete duplicate lines) opens folds,  starts at th top of the range and goes down. For each duplicate line found it is :delete
End result is you can select a portion of a file and quickily and easily delete blank lines and or delete duplicate lines.
 
install details
Install:
Drop the file into your PLUGIN folder (not ftplugin!)

Uninstall:
Simply remove the file.

To Test drive:
Just install and :DDL &&|| :DBL some test file. Uninstall if desired.
 

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
ddldbl.vim 0.1 2002-11-14 6.0 Robert KellyIV Initial upload
ip used for rating: 54.82.122.194

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo