Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.
VimL
tag: v0.86

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
after/plugin
autoload
doc
ftplugin
plugin
syntax
.gitignore
Contributors.md
README.md
addon-info.json

README.md

SnipMate

SnipMate aims to provide support for textual snippets, similar to TextMate or other Vim plugins like UltiSnips. For example, in C, typing for<tab> could be expanded to

for (i = 0; i < count; i++) {
    /* code */
}

with successive presses of tab jumping around the snippet.

Originally authored by Michael Sanders, SnipMate was forked in 2011 after a stagnation in development. This fork is currently maintained by Rok Garbas, Marc Weber, and Adnan Zafar.

Installing SnipMate

SnipMate depends on vim-addon-mw-utils and tlib. We recommend one of the following ways of installing all three.

  • Using Pathogen, run the following commands:

    % cd ~/.vim/bundle
    % git clone https://github.com/tomtom/tlib_vim.git
    % git clone https://github.com/MarcWeber/vim-addon-mw-utils.git
    % git clone https://github.com/garbas/vim-snipmate.git
    
  • Using VAM, add vim-snippets to the list of packages to be installed.

  • Using Vundle, add the following to your vimrc then run :BundleInstall

      Bundle "MarcWeber/vim-addon-mw-utils"
      Bundle "tomtom/tlib_vim"
      Bundle "garbas/vim-snipmate"
    

Lastly, since SnipMate does not ship with any snippets, we suggest looking at the vim-snippets repository.

Something went wrong with that request. Please try again.