Wednesday, July 9, 2014

Re: Clean string returned by windows console cmd

Hi John,

Your command is pretty good but can I affect a variable instead of output command under the cursor into the buffer

On Wednesday, July 9, 2014 12:16:35 AM UTC+2, JohnBeckett wrote:
> Ni Va wrote:
>
> > This is obtained by launching this command :
>
> > echo system("wmic logicaldisk get deviceid")
>
>
>
> The problem is that the output from wmic is Unicode, and system
>
> is dumping the bytes. I don't know how to avoid that, but the
>
> following reads the plain text if you have the correct settings:
>
>
>
> :r !wmic logicaldisk get deviceid
>
>
>
> John

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: