diff options
Diffstat (limited to '.config/nvim/my_snippets')
| -rw-r--r-- | .config/nvim/my_snippets/vimwiki.snippets | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.config/nvim/my_snippets/vimwiki.snippets b/.config/nvim/my_snippets/vimwiki.snippets index 21c1b22..daf93f7 100644 --- a/.config/nvim/my_snippets/vimwiki.snippets +++ b/.config/nvim/my_snippets/vimwiki.snippets | |||
| @@ -9,5 +9,21 @@ $\mathcal{O}(n)$ | |||
| 9 | endsnippet | 9 | endsnippet |
| 10 | 10 | ||
| 11 | snippet s "Create a new spotlight item" b | 11 | snippet s "Create a new spotlight item" b |
| 12 | - (`!v strftime("%F %R")`) ${1:`!v substitute(@+, ' \|\n', '', 'g' )`} -- ${2:Summary} | 12 | - (`!v strftime("%F %R")`) `xsel -ob` -- ${1:Summary} |
| 13 | endsnippet | ||
| 14 | |||
| 15 | snippet '- s' "Create a new spotlight item" w | ||
| 16 | - (`!v strftime("%F %R")`) `xsel -ob` -- ${1:Summary} | ||
| 17 | endsnippet | ||
| 18 | |||
| 19 | snippet "h([1-6])" "Headings" rbA | ||
| 20 | `!p snip.rv = '=' * int(match.group(1)) ` ${1:${VISUAL}} `!p snip.rv = '=' * int(match.group(1))` | ||
| 21 | $0 | ||
| 22 | endsnippet | ||
| 23 | |||
| 24 | snippet mcd "multi-line code" bA | ||
| 25 | {{{ $1 | ||
| 26 | ${2:${VISUAL}} | ||
| 27 | }}} | ||
| 28 | $0 | ||
| 13 | endsnippet | 29 | endsnippet |
