blob: cb697e8b1ec530830ce8a4a9cdda40ecbb1541b1 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim script to cleanup a .po file: comment-out fuzzy and empty messages.
2" Make sure there is a space before the string (required for Solaris).
3" Requires Vim 6.0 (because of multi-line search patterns).
4g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
5g/^msgstr"/s//msgstr "/
6g/^msgid"/s//msgid "/
7g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /