snipMate only working on empty buffer?
        Posted  
        
            by 
                JesseBuesking
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by JesseBuesking
        
        
        
        Published on 2012-10-24T08:14:52Z
        Indexed on 
            2012/10/24
            17:01 UTC
        
        
        Read the original article
        Hit count: 341
        
I'm attempting to use snipMate with sql files, however it doesn't seem to work when editing an existing file.
If I create a new empty buffer (no file; e.g. launch gvim from the start menu), and set the filetype to sql (:set ft=sql), it works.  However, if I then try to open a sql file (e.g. :e c:\blah.sql) and edit it, snipMate no longer works.  What gives!?
Setup:
- gvim
 - vim 7.3
 - Windows 7
 - snipMate 0.84
 - Also, I do in fact have 
filetype plugin onin my.vimrcfile. 
edit
Apparently if I open an empty buffer, set the filetype to sql, then save to file using w c:\blah.sql, I now have a sql file open AND snipMate continues to work.
edit
Here's a gist of my current .vimrc in case it helps: https://gist.github.com/3946877
© Stack Overflow or respective owner