snippets.vim is a simple utility for managing snippets of text within Vim. Users can add, edit, and delete snippets within vim. Command completion is supported in all places that make sense. A menu is also added at "Plugin/Snippets".
COMMANDS
AddSnippet -- adds new snippet that contain a range of lines
EditSnippet -- edits a snippet in a new tab
DeleteSnippet -- deletes a snippet (with confirmation)
InsertSnippet -- inserts a snippet before the current line
AppendSnippet -- inserts a snippet after the current line
ListSnippets -- lists snippets
MAPPINGS ( is set to '', by default)
ssa -- AddSnippet with current buffer (normal mode)
ssa -- AddSnippet with range of lines (visual mode)
sse -- EditSnippet
ssd -- DeleteSnippet
ssp -- AppendSnippet
ssP -- InsertSnippet
ssl -- ListSnippets
Requirements:
· Vim
INSTALLATION:
Place script in ~/.vim/plugin and start vim.
What's New in This Release:
· Made functions, variables, and mappings "script-friendly".
Product's homepage