Skip to content

Instantly share code, notes, and snippets.

@mattn
Created February 24, 2012 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/1898555 to your computer and use it in GitHub Desktop.
Save mattn/1898555 to your computer and use it in GitHub Desktop.
scriptencoding utf-8
set encoding=utf-8
let url = "http://vim.g.hatena.ne.jp/keyword/選択されたテキストの取得"
let url = iconv(url, &encoding, "char")
echo len(system(printf('curl -L -s -k -i "%s"', url)))."\n"
echo len(system(printf('curl -L -s -k -i %s', url)))."\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment