So, I’ve just installed the zen-coding.vim plugin and expansions aren’t happening. The plugin is there if I do scriptnames, and :verbose map shows the ZenCoding mappings. However, if I edit an html file (or set ft=html) and type
h1#title
Nothing happens. I am sure my .vimrc is hosed, but I am a bit new to the vim world so I am struggling finding out what I’ve messed up. My vim setup is here. I am on Mac OSX and I am using pathogen to bundle my plugins.
Anyone have any suggestions?
Thanks,
Glenn
Output of :set rtp
runtimepath=~/.vim,~/.vim/bundle/IndexedSearch,~/.vim/bundle/gist,~/.vim/bundle/jquery,~/.vim/bundle/nerdtree,~/.
vim/bundle/snipmate.vim,~/.vim/bundle/textile.vim,~/.vim/bundle/vim-align,~/.vim/bundle/vim-cucumber,~/.vim/bundle/
vim-fugitive,~/.vim/bundle/vim-git,~/.vim/bundle/vim-haml,~/.vim/bundle/vim-markdown,~/.vim/bundle/vim-rails,~/.vim
/bundle/vim-repeat,~/.vim/bundle/vim-ruby,~/.vim/bundle/vim-ruby-debugger,~/.vim/bundle/vim-shoulda,~/.vim/bundle/v
im-supertab,~/.vim/bundle/vim-surround,~/.vim/bundle/vim-tcomment,~/.vim/bundle/vim-vividchalk,~/.vim/bundle/zencoding-vim,/Applications/MacVim.app/Contents/Resources/vim/vimfiles,/Applications/MacVim.app/Contents/Resources/vim/ru
ntime,/Applications/MacVim.app/Contents/Resources/vim/vimfiles/after,~/.vim/bundle/snipmate.vim/after,~/.vim/after
I got it working by putting this in my .vimrc:
(I used
<c-e>instead of the default mostly because that’s what I’m used to from using other editors with Zen Coding)P.S. For me, Sparkup wasn’t really an option since one of my favorite features of zen coding is the “wrap in abbreviation” which Sparkup doesn’t support (yet).