sponsor Vim development Vim logo Vim Book Ad

checksum.vim : Compute checksums on files or lines

 script karma  Rating 1/1, Downloaded by 1100  Comments, bugs, improvements  Vim wiki

created by
erik falor
 
script type
utility
 
description
Compute MD5 or SHA1 checksum of entire file or range of lines.
Store checksum in buffer variable or in user-specified
register.  Uses external programs to compute checksums;
currently supports GNU md5sum, GNU sha1sum, and OpenSSL.
If you are a Windows user, you should install GNU CoreUtils
for Windows
(http://gnuwin32.sourceforge.net/downlinks/coreutils.php)
or Win32 OpenSSL
(http://www.slproweb.com/products/Win32OpenSSL.html)

Usage:
:{range}Md5 [register] - displays MD5 checksum for given range
of lines (default is entire file) and stores in b:md5sum and
the register named as an argument.
:{range}Sha1 [register] - displays SHA1 checksum for given
range of lines (default is entire file) and stores in
b:sha1sum and the register named as an argument.
<Leader>md - displays MD5 checksum for entire file or visual
selection and stores in b:md5sum
<Leader>sh - displays SHA1 checksum for entire file or visual
selection and stores in b:sha1sum

 
install details
Place checksum.vim in your $HOME/.vim/plugin directory.
($HOME/vimfiles/plugin if you are a Windows Vimmer).
 

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
checksum.vim 0.1 2007-11-08 7.0 erik falor Initial upload
ip used for rating: 18.221.41.214

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.
   
Vim at Github