Skip to content
This repository

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.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 after
Octocat-spinner-32 autoload
Octocat-spinner-32 doc
Octocat-spinner-32 ftplugin
Octocat-spinner-32 plugin
Octocat-spinner-32 snippets
Octocat-spinner-32 syntax
Octocat-spinner-32 README.markdown
Octocat-spinner-32 plugin-info.txt
README.markdown

snipmate.vim fork with "to uppercase" methods

This fork to snipmate.vim plugin adds %uc() and %ucfirst() methods that you can use in your snippets.

Method %uc() converts the string to uppercase, method %ucfirst() converts only the initial character.

The conversion is not done in real time - it's done after you "quit" the snippet using arrow keys or tab.

Example

Snippet:

snippet dc
  def create
    @${1:product} = %ucfirst($1).new
    %uc($1) = "This is Ruby %uc(constant) example."
  end

Output:

def create
  @product = Product.new
  PRODUCT = "This is Ruby CONSTANT example."
end

Plugin installation

Quickly install with:

git clone git://github.com/jarijokinen/snipmate.vim.git
cd snipmate.vim
cp -R * ~/.vim
Something went wrong with that request. Please try again.