mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 410 forks source link

Toggle comment not working #460

Open abz123 opened 5 years ago

abz123 commented 5 years ago

1.) Cursor placement <style> body { background: #d1d3d4; font-family: 'Bitter', serif; }

Type: C-y / Result: </^_style> body { background: #d1d3d4; font-family: 'Bitter', serif; }

2.) Cursor placement body { background: #d1d3d4; font-family: 'Bitter', serif; }

Type: C-y / Result: by^_ody { background: #d1d3d4; font-family: 'Bitter', serif; }

mattn commented 5 years ago

Probably, you don't enable emmet on html or css.

abz123 commented 5 years ago

I use it in html, js/vue and css everyday inside vim in tmux panes. All seems to work except the comments.

mattn commented 5 years ago

I can make sure comments working.

abz123 commented 5 years ago

Please confirm steps to make comments work. My setup: ubuntu, vim 8, tmux, emmet.

Added the following into .vimrc Made no difference: let g:user_emmet_leader_key = ''

Removed from .vimrc Tried again, made no difference: let g:user_emmet_leader_key = ''

abz123 commented 5 years ago

sorry previous did not paste in fully: let g:user_emmet_leader_key = ''

abz123 commented 5 years ago

not able to post the complete line for comment toggle.

rifazn commented 4 years ago

Toggle Comment not working in Visual Line mode too.

nikuro-dev commented 3 years ago

i have that problem too

abhi29jan commented 2 years ago

I use c>{"comment"} in neovim

ashwynh21 commented 2 years ago

Just to clarify what @abhi29jan said, enter c> then the emment command <c-y>,, then you should be good! Thanks @abhi29jan !!!