view src/po/cleanup.vim @ 539:b13dbb7b797c

updated for version 7.0153
author vimboss
date Mon, 03 Oct 2005 21:52:09 +0000
parents 3709cf52b9b5
children 862863033fdd
line wrap: on
line source

" Vim script to cleanup a .po file:
" - Remove line numbers (avoids that diffs are messy).
" - Comment-out fuzzy and empty messages.
" - Make sure there is a space before the string (required for Solaris).
" Requires Vim 6.0 or later (because of multi-line search patterns).
g/^#: /d
g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
g/^msgstr"/s//msgstr "/
g/^msgid"/s//msgid "/
g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /