summaryrefslogtreecommitdiff
path: root/src/po/cleanup.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-29 22:36:03 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-29 22:36:03 +0000
commit4be06f9e1b7ccde37f783e09b6ae35f69aa67995 (patch)
tree4f1e3168c803127f244be4c79d3fc032dda6dca6 /src/po/cleanup.vim
parent661b1820956743fd67f957f8dbbc45a93fe38dc9 (diff)
downloadvim-git-4be06f9e1b7ccde37f783e09b6ae35f69aa67995.tar.gz
updated for version 7.0119v7.0119
Diffstat (limited to 'src/po/cleanup.vim')
-rw-r--r--src/po/cleanup.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/po/cleanup.vim b/src/po/cleanup.vim
index 323aebab0..313f1595c 100644
--- a/src/po/cleanup.vim
+++ b/src/po/cleanup.vim
@@ -1,6 +1,9 @@
-" 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).
+" 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 "/