【问题标题】:Why can't activate emmet.vim?为什么无法激活 emmet.vim?
【发布时间】:2017-03-12 09:18:52
【问题描述】:

emmet.vim 是通过 vundle 安装的。

$ cd ~/.vim/bundle    
$ git clone git@github.com:mattn/emmet-vim.git

ls  .vim/bundle/emmet-vim
autoload  emmet.vim.vimup  plugin      TODO      unittest.vim
doc       Makefile         README.mkd  TUTORIAL

重新启动并编辑 test.html 文件。

cd /tmp
vim  test.html

按照手册说的: http://www.vim.org/scripts/script.php?script_id=2981

Type abbreviation
 +-------------------------------------
 | html:5_
 +-------------------------------------
"_" is a cursor position. and type "<c-y>," (Ctrl + y and Comma)

html5和ctrl+y+,这样输入是没有用的

html5 和 ctrl+y+,也不要这样输入

【问题讨论】:

  • 1.您是否按了&lt;C-y&gt;,然后立即按了,? 2.你描述的安装方式不是“通过vundle安装”。

标签: vim debian emmet


【解决方案1】:

可能是emmet没有正确安装或不可用。

要确定 emmet 是否可用,请运行 :scriptnames 并查看 emmet 是否存在

如果没有从https://github.com/mattn/emmet-vim正确安装

要使用emmet,你必须按照你提到的第一种方法。即在编辑空间本身中输入html5并执行 ctrly 后跟 ,

【讨论】:

  • :scriptnames , no emmet there.
  • @it_is_a_literature:所以你只需要正确安装它。我使用 vundle 进行插件管理。你有安装 vundle 吗?
【解决方案2】:

用病原体安装它

cd ~/.vim/bundle
git clone https://github.com/mattn/emmet-vim.git

【讨论】:

  • 如果你安装了vundle,最好使用vundle来安装emmet。让更新之类的事情变得容易
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-12-20
  • 2017-11-13
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多