Code-snippet is a straightforward Vim plugin that assists in inputting code snippets.
The process is straightforward. First, you register your snippets, generally in filetype plugins. Then, while in insert mode, you type a trigger string for the desired snippet. Pressing either
What's great about this plugin is that it uses abbreviations for snippets and placeholders, allowing you to easily expand them by pressing
To use code-snippet, you'll need Vim. The plugin is also configurable, allowing you to map commands to different keys or use select mode instead of visual mode.
The installation is simple. Extract the zip file to "$HOME/.vim/" (*nix) and follow the instructions in the "code-snippet.txt" file. It's also recommended to add "filetype plugin indent on" to your .vimrc file for easier registration of multi-line snippets.
Note that on some systems, default key mappings may not work, so you'll need to map them to other keys. Overall, code-snippet is a useful and customizable plugin that can make working with code snippets on Vim a breeze.
Version 071204a: N/A