diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2010-12-08 19:43:54 -0600 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-12-08 19:43:54 -0600 |
commit | 477c0fc85218cba12597cf3daf7728b127b0fd64 (patch) | |
tree | 0da3e2c73535cd97c22791e51e20b18b3192506c /doc/development/vim_snippet.txt | |
parent | 9f55492d9213861c75496e6c493ad90bb5c23872 (diff) | |
download | bcfg2-477c0fc85218cba12597cf3daf7728b127b0fd64.tar.gz bcfg2-477c0fc85218cba12597cf3daf7728b127b0fd64.tar.bz2 bcfg2-477c0fc85218cba12597cf3daf7728b127b0fd64.zip |
doc: Finish merging remaining documentation updates
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'doc/development/vim_snippet.txt')
-rw-r--r-- | doc/development/vim_snippet.txt | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/doc/development/vim_snippet.txt b/doc/development/vim_snippet.txt deleted file mode 100644 index a01c1cfda..000000000 --- a/doc/development/vim_snippet.txt +++ /dev/null @@ -1,65 +0,0 @@ -.. -*- mode: rst -*- - -.. _development-vim_snippet: - -=================== -Vim Snippet Support -=================== - -This page describes using vim with snipMate and a set of snippets -that allow quick composition of bundles and base files. - -#. Download snipMate from http://www.vim.org/scripts/script.php?script_id=2540 -#. Install it using the install instructions (unzip snipMate.zip -d ~/.vim or equivalent, e.g. $HOME\vimfiles on Windows) -#. Add the following to ``~/.vim/snippets/xml.snippets`` - - .. code-block:: cl - - # Bundle - snippet <Bundle - <Bundle name='${1:bundlename}'> - ${2} - </Bundle> - # Base - snippet <Base - <Base> - ${1} - </Base> - # Group - snippet <Group - <Group name='${1:groupname}'> - ${2} - </Group> - # ConfigFile - snippet <Config - <ConfigFile name='${1:filename}'/> - # Service - snippet <Service - <Service name='${1:svcname}'/> - # Package - snippet <Package - <Package name='${1:packagename}'/> - # Action - snippet <Action - <Action name='${1:name}'/> - # Directory - snippet <Directory - <Directory name='${1:name}'/> - # SymLink - snippet <SymLink - <SymLink name='${1:name}'/> - # Permissions - snippet <Permissions - <Permissions name='${1:name}'/> - - -#. Save and start editing away! - -Each of these snippets activates on the opening element, ie <Bundle>. -After this string is entered, but before entering a space, press <TAB>, -and the snippet will be expanded. The template will be inserted into -the text with a set of input prompts, which default to overwrite mode -and can be tabbed through. - -The code above only works for bundles and base, but will be expanded -to support other xml files as well. |