Re: Unbreakable space in text editor
- From: Claude Paroz <claude 2xlibre net>
- To: Yannig MARCHEGAY <yannig marchegay org>
- Cc: gnome-i18n gnome org
- Subject: Re: Unbreakable space in text editor
- Date: Sat, 18 Aug 2007 20:53:36 +0200
Le samedi 18 ao�07 �5:15 +0200, Yannig MARCHEGAY a �it :
> Hello everybody,
>
> I'd like to batch-correct the unbreakable spaces that are laking in my
> translations. For that, the best would be to batch-search-replace in
> the po files in a text editor. Could you please tell me the symbol for
> an unbreakable space for a po file in a text editor?
>
You can do that in vim :
:%s/x x/x x/g
:%s -> tell vim to search and replace on entire file
/x x/ (first occurence) -> pattern to search for
/x x/ (second occurrence) -> text that will replace the searched text
Here, the non-breaking space is generated by Ctrl-K + NS
/g -> tell vim to replace all occurrences
I'm still looking for a trick to make vim display the non-breaking space
in another color... Someone ?
Claude
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]