Ben Fritz wrote:
> I know I can use the "chcp" command in a cmd.exe shell to
> output the current encoding, so prior to patch 203, I had a
> system() command which grabs the output of this command in my
> .vimrc. However, as a side effect, every time I launch Vim
> with this call in the .vimrc, a cmd.exe window flashes.

This works on my Windows system (with no extra window):
  :let output=system('chcp')
  :echo matchstr(output, '\d\+')

I guess it works because chcp is an external program.

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

Reply via email to