diff options
| author | Yigit Sever | 2021-11-12 21:49:09 +0300 |
|---|---|---|
| committer | Yigit Sever | 2021-11-12 21:49:09 +0300 |
| commit | a4c31cf757ee7b7b97a823e4198f82eec3d8a9df (patch) | |
| tree | f875d868eb17056195c27b29055dc9abf894875c /.config/nvim/my_snippets/vimwiki.snippets | |
| parent | bb29976e383d9e305e92d9fc4977471535ed70f5 (diff) | |
| download | dotfiles-a4c31cf757ee7b7b97a823e4198f82eec3d8a9df.tar.gz dotfiles-a4c31cf757ee7b7b97a823e4198f82eec3d8a9df.tar.bz2 dotfiles-a4c31cf757ee7b7b97a823e4198f82eec3d8a9df.zip | |
nvim: fix spotlight snippet also steal stuff during fixing
Diffstat (limited to '.config/nvim/my_snippets/vimwiki.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 |
