Pet*_*sik 4 vi vim plugins pathogen
我真的很头疼 - 我开始使用vim
我的日常编程任务,所以我决定使用可用的优秀插件.所以我从Pathogen开始,我相信我成功安装了它.然后我尝试了emmet.vim,但我真的无法做到这一点.这是我的目录结构
??? autoload
? ??? pathogen.vim
??? bundle
??? autoload
? ??? emmet
? ? ??? lang
? ? ? ??? css.vim
? ? ? ??? haml.vim
? ? ? ??? html.vim
? ? ? ??? sass.vim
? ? ? ??? scss.vim
? ? ? ??? slim.vim
? ? ??? lang.vim
? ? ??? lorem
? ? ? ??? en.vim
? ? ? ??? ja.vim
? ? ??? util.vim
? ??? emmet.vim
??? doc
? ??? emmet.txt
??? plugin
??? emmet.vim
| .vimrc
Run Code Online (Sandbox Code Playgroud)
和.vimrc
内容
execute pathogen#infect()
syntax on
filetype plugin indent on
Run Code Online (Sandbox Code Playgroud)
这是对的吗?然后我尝试在GitHub页面上提到的简单教程,但它没有用.所以我做了
vim file.html
i //insert mode
html:5 and then pressing Ctrl + y + ,
Run Code Online (Sandbox Code Playgroud)
但什么都没发生.我很感激任何有关这方面的建议,我真的被困了
mhi*_*inz 11
你忘了根目录.
你有bundle/<repo content>
,但它应该是bundle/emmet-vim/<repo content>
.
所以通常你只做:
$ cd ~/.vim/bundle
$ git clone git@github.com:mattn/emmet-vim.git
(这也在Pathogen README中描述:-))