mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
user_emmet_install_global to off to install as global
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" File: emmet.vim
|
" File: emmet.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 10-Sep-2013.
|
" Last Change: 22-Oct-2013.
|
||||||
" Version: 0.82
|
" Version: 0.82
|
||||||
" WebPage: http://github.com/mattn/emmet-vim
|
" WebPage: http://github.com/mattn/emmet-vim
|
||||||
" Description: vim plugins for HTML and CSS hi-speed coding.
|
" Description: vim plugins for HTML and CSS hi-speed coding.
|
||||||
@@ -91,7 +91,7 @@ if !exists('g:emmet_curl_command')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if exists('g:user_emmet_complete_tag') && g:user_emmet_complete_tag
|
if exists('g:user_emmet_complete_tag') && g:user_emmet_complete_tag
|
||||||
setlocal omnifunc=emmet#CompleteTag
|
setlocal omnifunc=emmet#completeTag
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('g:user_emmet_leader_key')
|
if !exists('g:user_emmet_leader_key')
|
||||||
@@ -148,15 +148,13 @@ function! s:install_plugin(mode)
|
|||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if exists('g:user_emmet_mode')
|
command! -nargs=0 EmmetInstall call <SID>install_plugin(get(g:, 'user_emmet_mode', 'a'))
|
||||||
call s:install_plugin(g:user_emmet_mode)
|
|
||||||
else
|
if get(g:, 'user_emmet_install_global', 1)
|
||||||
call s:install_plugin('a')
|
EmmetInstall
|
||||||
endif
|
endif
|
||||||
|
|
||||||
delfunction s:install_plugin
|
if get(g:, 'user_emmet_install_command', 1)
|
||||||
|
|
||||||
if get(g:, 'user_emmet_command', 1)
|
|
||||||
command! -nargs=1 Emmet call emmet#expandAbbr(4, <q-args>)
|
command! -nargs=1 Emmet call emmet#expandAbbr(4, <q-args>)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user