On Thursday, June 5, 2014 5:59:58 AM UTC+12, Stas Malavin wrote:
> To make changes in several files I use the following script:
> 
> echo search('publications.html"') | normal o<li><a 
> href="./book_series.html">Книжные серии</a></li>
> echo search('collections.html"') | d
> echo search('photo.html"') | d
> wq
> 
> Then I do 
> 
> for file in *.html do; vim -e $file < script; done
> 
> As a result a string "^Z=86=K5 A5@88" is inserted instead of "Книжные серии". 
> 
> Thanks in advance for any comment!

I think this is a result of using ex mode (which BTW is ancient). 
'termencoding' is blank, but my attempts to set it had no effect.  If I copy 
some cyrillic text outside of vim, and in a konsole run vim -e, and use 
konsole's Edit -> Paste function, the text is garbled, even if termencoding is 
set in my .vimrc.

Ben's -S script suggestion works for me.

Regards, John Little

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to