Skip to content

Instantly share code, notes, and snippets.

@yukirin
Last active December 25, 2015 22:29
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 yukirin/7050422 to your computer and use it in GitHub Desktop.
Save yukirin/7050422 to your computer and use it in GitHub Desktop.
emmet.vimの閉じタグコメントを変更
diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim
index 11bf1f1..a7e3af9 100644
--- a/autoload/emmet/lang/html.vim
+++ b/autoload/emmet/lang/html.vim
@@ -371,7 +371,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite
endif
endfor
if len(comment) > 0
- let str = "<!-- " . comment . " -->\n" . str
+ let str = str
endif
if stridx(','.settings.html.empty_elements.',', ','.current_name.',') != -1
let str .= settings.html.empty_element_suffix
@@ -422,7 +422,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite
let str .= "</" . current_name . ">"
endif
if len(comment) > 0
- let str .= "\n<!-- /" . comment . " -->"
+ let str .= "<!-- /" . comment . " -->"
endif
if len(current_name) > 0 && current.multiplier > 0 || stridx(','.settings.html.block_elements.',', ','.current_name.',') != -1
let str .= "\n"
<div class="hoge">
</div><!-- /.hoge -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment