Question

What is wrong with my install of snipMate? I cannot get it to work. I even tried installing Pathogen as noted in the other answer. I am running vim7.4 on a windows XP. The _vimrc is noted below -

set nocompatible
set textwidth=80
set formatoptions=cqrol
set ts=2
set expandtab
set guifont:Courier_New:h8:cANSI
set backupdir=$temp
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

filetype plugin on

autocmd BufEnter * setlocal cursorline cursorcolumn
hi cursorcolumn ctermbg=247 guibg=grey70
hi cursorline ctermbg=247 guibg=grey70            

call pathogen#infect()

The VIM install directory structure looks like below. It is after I unzipped the snipMate.zip to vim74 folder.

c:\program files\vim\vim74
after/
autoload/
colors/
compiler/
doc/
ftplugin/
indent/
keymap/
lang/
macros/
plugin/
snippets/
spell/
syntax/
tools/
tutor/
README.txt
bugreport.vim
delmenu.vim
diff.exe*
evim.vim
filetype.vim
ftoff.vim
ftplugin.vim
ftplugof.vim
gvim.exe*
gvimext.dll
gvimrc_example.vim
indent.vim
indoff.vim
install.exe*
libintl.dll
macmap.vim
makemenu.vim
menu.vim
mswin.vim
optwin.vim
rgb.txt
scripts.vim
synmenu.vim
uninstal.exe*
uninstal.txt
uninstall-gui.exe*
vim.exe*
vimrc_example.vim
vimrun.exe*
vimtutor.bat*
xxd.exe*
.swp
Was it helpful?

Solution 2

Okay finally problem solved. After some reading and trial&error, I stumbled upon this question which did it. The path separator slashes in the _vimrc are "\" by default. But they need to be "/". Thank you those who helped with their answers and comments.

The working _vimrc file is shown below -

"for pathogen
runtime ../vimfiles/bundle/vim-pathogen-master/autoload/pathogen.vim
execute pathogen#infect()
execute pathogen#helptags()

"for snipmate
let g:snippets_dir="$VIMRUNTIME/../vimfiles/bundle/sv-snippets/snippets"

set nocompatible
set textwidth=80
set formatoptions=cqrol
set ts=2
set expandtab
set guifont:Courier_New:h8:cANSI
set backupdir=$temp
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

filetype plugin indent on
syntax on

autocmd BufEnter * setlocal cursorline cursorcolumn
hi cursorcolumn ctermbg=247 guibg=grey70
hi cursorline ctermbg=247 guibg=grey70    

Some notes about this _vimrc -

  1. I call pathogen#helptags() in _vimrc because I am sure I shall forget it. I do not have too many plugins so this is not a problem.
  2. During the exercise I stumbled upon a way to locate pathogen in the bundle folder as well. Thank you Ted Reed for this. I haven't seen anybody talk about installing pathogen this way. But it's great because now the install is not corrupted even with the pathogen files.
  3. I did not see any differences in the behavior if I comment out the mswin related statements. But I left it in there because I do not completely know what they do and I have been using it this way for a longtime now without any issues.

The directory structure I use -

c:\program files\vim\vim74 - vim install, given by $VIMRUNTIME
c:\program files\vim\vimfiles\bundle - plugins such as pathogen, snipmate
c:\program files\vim\_vimrc 

OTHER TIPS

I'm a Unix guy and don't know much about Windows, but try the following steps:

1) Per default pathogen searches in your personal folder ($HOME\vimfiles\bundle) and not in Vim's installation directory

2) Put call pathogen#infect() at the top of your vimrc

3) Maybe try commenting out the two mswin lines, maybe they interfere somehow

4) Which snipmate did you use? There is the old, unmaintained version from msanders (I still use this one) that has no depedencies and there is a fork by garbas that actually has dependencies

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top