From 9475526c1f7d5cb2eeeaf29667af9469a40b0d20 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 10 Sep 2013 19:42:21 +0900 Subject: [PATCH] Possible to disable definition of :Emmet command. Closes #147 --- plugin/emmet.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin/emmet.vim b/plugin/emmet.vim index f34f9ad..ad1e1a9 100644 --- a/plugin/emmet.vim +++ b/plugin/emmet.vim @@ -1,7 +1,7 @@ "============================================================================= " File: emmet.vim " Author: Yasuhiro Matsumoto -" Last Change: 25-Aug-2013. +" Last Change: 10-Sep-2013. " Version: 0.82 " WebPage: http://github.com/mattn/emmet-vim " Description: vim plugins for HTML and CSS hi-speed coding. @@ -90,7 +90,7 @@ if !exists('g:emmet_curl_command') let g:emmet_curl_command = 'curl -s -L -A Mozilla/5.0' endif -if exists('g:use_emmet_complete_tag') && g:use_emmet_complete_tag +if exists('g:user_emmet_complete_tag') && g:user_emmet_complete_tag setlocal omnifunc=emmet#CompleteTag endif @@ -156,7 +156,9 @@ endif delfunction s:install_plugin -command! -nargs=1 Emmet call emmet#expandAbbr(4, ) +if get(g:, 'user_emmet_command', 1) + command! -nargs=1 Emmet call emmet#expandAbbr(4, ) +endif let &cpo = s:save_cpo unlet s:save_cpo