summaryrefslogtreecommitdiffstats
path: root/.config/nvim/my_snippets/vimwiki.snippets
diff options
context:
space:
mode:
authorYigit Sever2021-11-12 21:49:09 +0300
committerYigit Sever2021-11-12 21:49:09 +0300
commita4c31cf757ee7b7b97a823e4198f82eec3d8a9df (patch)
treef875d868eb17056195c27b29055dc9abf894875c /.config/nvim/my_snippets/vimwiki.snippets
parentbb29976e383d9e305e92d9fc4977471535ed70f5 (diff)
downloaddotfiles-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.snippets18
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)$
9endsnippet 9endsnippet
10 10
11snippet s "Create a new spotlight item" b 11snippet 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}
13endsnippet
14
15snippet '- s' "Create a new spotlight item" w
16- (`!v strftime("%F %R")`) `xsel -ob` -- ${1:Summary}
17endsnippet
18
19snippet "h([1-6])" "Headings" rbA
20`!p snip.rv = '=' * int(match.group(1)) ` ${1:${VISUAL}} `!p snip.rv = '=' * int(match.group(1))`
21$0
22endsnippet
23
24snippet mcd "multi-line code" bA
25{{{ $1
26${2:${VISUAL}}
27}}}
28$0
13endsnippet 29endsnippet