File Templates and Code Skeletons/Snippets for VIM
Vim script
Latest commit d52f4c0 Sep 17, 2016 @tomtom docs
Failed to load latest commit information.
autoload FIX <+joinline+> Sep 17, 2016
doc docs Sep 17, 2016
etc Help template Oct 20, 2013
plugin version Jun 28, 2014
skeletons README Feb 9, 2012
syntax FIX #11: Don't include :HiLink in doc May 20, 2014
.gitignore misc Nov 21, 2012
CHANGES.TXT docs Jun 28, 2014
LICENSE.TXT LICENSE (close #15) Jul 25, 2016
README LICENSE (close #15) Jul 25, 2016
addon-info.json LICENSE (close #15) Jul 25, 2016


tskeleton provides file templates and code skeletons ("snippets" or "bits"). 
These templates may contain special tags that are replaced with some computed 
value (e.g., variables, user input ...), vimscript code, or place holders/jump 
positions (see |tskeleton-jump-positions|).

Basic usage:
Type `:new filename.ext`. If a skeleton for the respective filetype is 
defined (see |tskeleton-skeletons|), it will be read into the buffer.

Type a partial name of a snippet (at least the first letter) and press 
(in insert mode) <c-space> (see |tskeleton-key-bindings| for alternative 
key maps). If the name identifies a snippet/bit, it will be replaced with 
its expansion text. If there are several snippets beginning with that 
"name", you will be asked to select one from a list of matching 

<c-space> can be configured to expand snippets but also (albeit disabled 
by default) abbreviations, functions (VIM script only), tags, word, 
'completefunc' and 'omnifunc' items (see |g:tskelTypes| and 
|g:tskelHyperComplete| for details.)

Press <c-j> to jump to the next place holder (see 

Demo -- tskeleton and the stakeholders (vimscript #3326) plugin:


For similar plugins see:

Limitations of tskeleton:
    - Place holders cannot be nested.
    - tskeleton was originally written for vim 6.0. I'd expect it to be 
      less snappy than more modern and simpler plugins, although it 
      tries to provide acceptable performance on slower computers by 
      caching frequently reused data.

Advantages of tskeleton with respect to some other plugins:
    - tskeleton provides for more complex templates (see 
      |tskeleton-place-holder|) including conditional expansion, loops, 
      inclusion of other templates, user queries etc.
    - Easy creation of camel case, all upper/lower case letter names etc. (see 

It depends:
    - A place holder is some text in the buffer, i.e. tskeleton uses less magic 
      when handling jump positions. As long as users don't replace all place 
      holders, the buffer's contents most likely isn't valid code and an 
      interpreter/compiler will most likely refuse to load it even if the 
      code is never executed.


  tlib ::
      > git clone git://
License: GPLv3 or later
Install: See
See for related plugins.