Skip to content
mop edited this page Sep 13, 2010 · 5 revisions

snip-fu is still experimental software. There are lots of bugs in it.

Installation

For installing snip-fu you must compile vim with ruby-support. Most of the modern distributions have already compiled ruby-support into vim though.

If you want to use install snip-fu, you must move the ./src-directory as snip-fu into your ~/.vim-directory and add
rubyf /home/username/.vim/snip-fu/vim-snippet.rb to your vimrc-file.

The snippets must be placed into ~/.vim/snippets/. There is already an example snippet in the share-subdirectory of the repository.

Usage

snip-fu snippets are similar to TextMate snippets. Insertion of simple text, special variables (at the moment: $VI_SELECTED_TEXT, $VI_FILENAME, $VI_CURRENT_LINE, $VI_SOFT_TABS), “default”-expressions (${VI_SELECTED_TEXT: default}), regexp-translations ${VI_SELECTED_TEXT/.*/\U$0/} and Mirroring (as well as Regexp-Transformations of Mirrors) are supported, but nearly all features might have their rough edges.

I’ve found a bug!

Bugs can be reported to our Trac-Tracker .

Clone this wiki locally