VIM Snippets Customization
Studying note for customizing vim-snippets.
Install vim-snippets
See Github
Syntax
Module:
1 | snippet [trigger] ["Description"] [index] |
Index:
Index | Description |
---|---|
b | trigger should be in the front of the line |
i | trigger can be inside a word |
w | trigger should be in the edge of two words |
r | trigger can be a regular expression |
A | auto trigger |
Example
Generate a two column table:
1 | snippet tb2 "Create table of two columns" b |
Or generate a code block for bash
1 | snippet bbl "Bashblock" b |
VIM Snippets Customization
http://chen-yulin.github.io/2022/04/12/VIM-Snippets-Customization/