normalize: add two vim functions

Closes rhbz#1001135.

Signed-off-by: Martin Milata <mmilata@redhat.com>