and now a better Start-Process which don't flicker:
$argRead = '"e ' + $filename + '"'
$argwrite = '"w! ' + $tmpFilepath + '"'
Start-Process -FilePath $vimPath -wait -WindowStyle Hidden -ArgumentList
( `
'-c', '"set noswapfile"', '-c', $argRead, `
'-c', '"set
Thank you it worked
Here an example of the full command to convert encoding to UTF-8 with BOM
Start-Process -FilePath 'C:/Program Files (x86)/Vim/vim82/vim.exe' -wait -
ArgumentList ('"S:\testConcToUTF2\b Ansi copied.txt"', '-c', '"set
fileencoding=utf-8"', '-c', '"set bomb"', '-c', '"w
Thank you, this works!
>
> '-c set fileenconding=utf-8' should be changed to
>
> '-c', '"set fileencoding=utf-8"'
>
>>
>>
--
--
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
On Friday, January 17, 2020 at 4:01:09 PM UTC-6, Erhy wrote:
>
> Hallo!
> My task is, to convert many files encoding in latin1 to UTF-8
>
> I know the sequence which works:
>
> open a file
> set set fileencoding=utf-8
> set bomb
> wrtite to another file
>
> but there are problems with the
Hallo!
My task is, to convert many files encoding in latin1 to UTF-8
I know the sequence which works:
open a file
set set fileencoding=utf-8
set bomb
wrtite to another file
but there are problems with the argument list
this fails:
Start-Process -FilePath 'C:/Program Files