I observe that a copy-paste containing the control character '^L' (ie FF) causes an error with 'vimrepress'.
Wordpress publishes the page but vimpress cannot load it. I would like to replace this '^L' character with a space in one and, if possible, several pages either with "adminer", or with a plugin, or from the editor.
Any ideas ?
NB: WP 5.4.1; mysql 5.7.28; PHP 5.6.39
I observe that a copy-paste containing the control character '^L' (ie FF) causes an error with 'vimrepress'.
Wordpress publishes the page but vimpress cannot load it. I would like to replace this '^L' character with a space in one and, if possible, several pages either with "adminer", or with a plugin, or from the editor.
Any ideas ?
NB: WP 5.4.1; mysql 5.7.28; PHP 5.6.39
Share Improve this question edited May 4, 2020 at 6:50 norman.lol 3,2313 gold badges30 silver badges35 bronze badges asked May 4, 2020 at 4:47 Dhénin Jean-JacquesDhénin Jean-Jacques 11 bronze badge1 Answer
Reset to default 0first workaround:
- Edit the page under wordpress classic editor and copy (ctrl-C) the whole to the clipboard.
- Open the vim editor
- Copy (ctrl-V) the clipboard to the vim window
- Replace all control characters with a space :%s/[^@-^M]/ /g (ie ctrl-V ctrl- @ and ctrl-V ctrl-M)
- Overwrite the page content in wordpress with the new vim content via the clipboard