Skip to content

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.

Notifications You must be signed in to change notification settings

fish-face/vim-snipmate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

We recommend one of the following methods for installing SnipMate and its dependencies. SnipMate depends on vim-addon-mw-utils and tlib. Since SnipMate does not ship with any snippets, we suggest looking at the vim-snippets repository.

  • 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
    
      # Optional:
      % git clone https://github.com/honza/vim-snippets.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"
    
      " Optional:
      Bundle "honza/vim-snippets"
    

Release Notes

0.87 - 2014-01-04

  • Stop indenting empty lines when expanding snippets
  • Support extends keyword in .snippets files
  • Fix visual placeholder support
  • Add zero tabstop support
  • Support negative 'softtabstop'
  • Add g:snipMate_no_default_aliases option
  • Add snipMateTrigger for triggering an expansion inside a snippet
  • Add snipMate#CanBeTriggered() function

About

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%