mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
useragent.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" zencoding.vim
|
" zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 14-Feb-2012.
|
" Last Change: 21-Feb-2012.
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -1194,6 +1194,10 @@ function! s:get_content_from_url(url, utf8)
|
|||||||
silent! exec '0r!'.g:zencoding_curl_command.' "'.substitute(a:url, '#.*', '', '').'"'
|
silent! exec '0r!'.g:zencoding_curl_command.' "'.substitute(a:url, '#.*', '', '').'"'
|
||||||
endif
|
endif
|
||||||
let ret = join(getline(1, '$'), "\n")
|
let ret = join(getline(1, '$'), "\n")
|
||||||
|
let ic = iconv(ret, "utf-8", &encoding)
|
||||||
|
if ret != ic
|
||||||
|
let ret = ic
|
||||||
|
endif
|
||||||
silent! bw!
|
silent! bw!
|
||||||
return ret
|
return ret
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" File: zencoding.vim
|
" File: zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 02-Feb-2012.
|
" Last Change: 21-Feb-2012.
|
||||||
" Version: 0.59
|
" Version: 0.59
|
||||||
" WebPage: http://github.com/mattn/zencoding-vim
|
" WebPage: http://github.com/mattn/zencoding-vim
|
||||||
" Description: vim plugins for HTML and CSS hi-speed coding.
|
" Description: vim plugins for HTML and CSS hi-speed coding.
|
||||||
@@ -79,7 +79,7 @@ if !exists('g:zencoding_debug')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('g:zencoding_curl_command')
|
if !exists('g:zencoding_curl_command')
|
||||||
let g:zencoding_curl_command = 'curl -s -L'
|
let g:zencoding_curl_command = 'curl -s -L -A Mozilla/5.0'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists('g:use_zen_complete_tag') && g:use_zen_complete_tag
|
if exists('g:use_zen_complete_tag') && g:use_zen_complete_tag
|
||||||
|
|||||||
Reference in New Issue
Block a user