mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-02-28 06:45:52 +01:00
updated documentation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
*snipMate.txt* Plugin for using TextMate-style snippets in Vim.
|
*snipMate.txt* Plugin for using TextMate-style snippets in Vim.
|
||||||
|
|
||||||
snipMate *snippet* *snippets* *snipMate*
|
snipMate *snippet* *snippets* *snipMate*
|
||||||
Last Change: March 26, 2009
|
Last Change: April 6, 2009
|
||||||
|
|
||||||
|snipMate-description| Description
|
|snipMate-description| Description
|
||||||
|snipMate-usage| Usage
|
|snipMate-usage| Usage
|
||||||
@@ -170,12 +170,13 @@ simply place all the snippets in a subdirectory with the trigger name:
|
|||||||
USAGE *snipMate-usage*
|
USAGE *snipMate-usage*
|
||||||
|
|
||||||
*'snippets'* *g:snippets_dir*
|
*'snippets'* *g:snippets_dir*
|
||||||
Snippets are by default looked for in the 'snippets' directory inside your
|
Snippets are by default looked for any 'snippets' directory in your
|
||||||
home '.vim' directory, typically located at '~/.vim/snippets/' on *nix or
|
'runtimepath'. Typically, it is located at '~/.vim/snippets/' on *nix or
|
||||||
'$HOME\vimfiles\snippets\' on Windows. To change that location or add another
|
'$HOME\vimfiles\snippets\' on Windows. To change that location or add another
|
||||||
one, change the g:snippets_dir variable in your |.vimrc| to your preferred
|
one, change the g:snippets_dir variable in your |.vimrc| to your preferred
|
||||||
directory, or use the |ExtractSnips()|function. NOTE: g:snippets_dir must
|
directory, or use the |ExtractSnips()|function. This will be used by the
|
||||||
end in a slash.
|
|globpath()| function, and so accepts the same syntax as it (e.g.,
|
||||||
|
comma-separated paths).
|
||||||
|
|
||||||
ExtractSnipsFile({directory}, {filetype}) *ExtractSnipsFile()* *.snippets*
|
ExtractSnipsFile({directory}, {filetype}) *ExtractSnipsFile()* *.snippets*
|
||||||
|
|
||||||
@@ -191,10 +192,10 @@ look like this: 'snippets/<filetype>/<trigger>.snippet'. If the snippet has
|
|||||||
multiple matches, it should look like this:
|
multiple matches, it should look like this:
|
||||||
'snippets/<filetype>/<trigger>/<name>.snippet' (see |multi_snip|).
|
'snippets/<filetype>/<trigger>/<name>.snippet' (see |multi_snip|).
|
||||||
|
|
||||||
*ResetSnips()*
|
*ResetSnippets()*
|
||||||
The ResetSnips() function removes all snippets from memory. This is useful to
|
The ResetSnippets() function removes all snippets from memory. This is useful
|
||||||
put at the top of a snippet setup file for if you would like to |:source| it
|
to put at the top of a snippet setup file for if you would like to |:source|
|
||||||
multiple times.
|
it multiple times.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
SETTINGS *snipMate-settings* *g:snips_author*
|
SETTINGS *snipMate-settings* *g:snips_author*
|
||||||
|
|||||||
Reference in New Issue
Block a user