Giter Club home page Giter Club logo

skeletor-vim's Introduction

Skeletor

Vim skeletons; about as simple as they come.

Installation

Preferred Method

Install Vundle and add Bundle 'strange/skeletor-vim' to your .vimrc.

Manual Install

Copy autoload/skeletor.vim and plugin/skeletor.vim into corresponding directories in your vim plugin directory.

Usage

:Skeletor brings up a list of all skeletons available for the filetype of the currently loaded file.

Something like the following in your .vimrc might be nice:

noremap <leader>s :Skeletor<CR>

Skeletons

Skeletons are just regular files (or symlinks) located at a special location. They can have any name and any extension. The name will be used to identify the skeleton in the list displayed by :Skeletor; the extension will be ignored (but is nice to have as you get syntax highlighting etc when you edit skeletons).

Skeletons must be placed in directories matching vim's filetypes. These directories must be placed in the directory skeletons in your runtimetpath.

This is how you'd create a skeleton for a html form, for example:

  1. Make sure that the directory skeletons, in your runtimepath, exists.
  2. Create the directory html in the skeletons-directory.
  3. Write your form to a file called form.html in your html-directory.

So, on a standard unix installation you'd put your code into the file ~/.vim/skeletons/html/form.html.

skeletor-vim's People

Stargazers

Gustaf Sjöberg avatar

Watchers

Gustaf Sjöberg avatar James Cloos avatar  avatar

Forkers

marreknozka

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.