Mercurial > vim
view src/po/cleanup.vim @ 439:8d2b705a5a51 v7.0113
updated for version 7.0113
author | vimboss |
---|---|
date | Fri, 22 Jul 2005 21:54:43 +0000 |
parents | 3fc0f57ecb91 |
children | 3709cf52b9b5 |
line wrap: on
line source
" Vim script to cleanup a .po file: 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/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ / g/^msgstr"/s//msgstr "/ g/^msgid"/s//msgid "/ g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /