0

I was not able to get snipMate to work with gvim and then found that there is an existing issue. the solution seems to be to run the following command after opening vim source ~/.vim/after/plugin/snipMate.vim

To save me from the pain of remembering to run that every time I open vim, I tried adding that same command to my startup settings (~/.vimrc)..however that does not seem to work.

Is there another way to load this at the time when I start vim?

Omnipresent
  • 29,434
  • 47
  • 142
  • 186
  • Are you sure vim is reading your `~/.vimrc` file? Try `~/_vimrc`, I've seen that name a lot when Windows systems are involved. – sarnold Mar 17 '11 at 03:09
  • @sarnold On windows vim reads both `~/.vimrc` and `~/_vimrc`. The background for using the second name is that explorer.exe fobids user to create filenames starting with dot. – ZyX Mar 17 '11 at 16:09
  • @ZyX, ah! Thanks for satisfying my curiosity. :) – sarnold Mar 17 '11 at 20:37

2 Answers2

0

Add this in your .vimrc:

:so ~/.vim/after/plugin/snipMate.vim
Mike Lewis
  • 63,433
  • 20
  • 141
  • 111
0

Set the appropriate file type without the defined type snipmate not know how to complete eg.

:set ft=python
SergioAraujo
  • 11,069
  • 3
  • 50
  • 40