commit 50715552d1d85a2cc522605f09574a9697da939c
parent 82809717f5c7bc04abde918c36b2ef9ca51fe7cd
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Thu, 2 Jul 2020 18:20:33 +0200
vim: improve snippets
Former-commit-id: b0639513639e2e7a6d93b925aa3977be3073312c
Diffstat:
2 files changed, 44 insertions(+), 40 deletions(-)
diff --git a/vim/ultisnips/bib.snippets b/vim/ultisnips/bib.snippets
@@ -1,56 +1,56 @@
snippet @book "Book citation" b
@book{${1:ref},
- author = "",
- title = "",
- publisher = "",
- ?_volume = "",
- ?_number = "",
- ?_series = "",
- ?_address = "",
- ?_edition = "",
- year = "",
- ?_month = "",
- ?_note = ""
+ author = {},
+ title = {},
+ publisher = {},
+ ?_volume = {},
+ ?_number = {},
+ ?_series = {},
+ ?_address = {},
+ ?_edition = {},
+ year = {},
+ ?_month = {},
+ ?_note = {}
}
endsnippet
snippet @article "Article" b
@article{${1:ref},
- author = "",
- title = "",
- journal = "",
- ?_volume = "",
- ?_number = "",
- ?_pages = "",
- year = "",
- ?_month = "",
- ?_note = ""
+ author = {},
+ title = {},
+ journal = {},
+ ?_volume = {},
+ ?_number = {},
+ ?_pages = {},
+ year = {},
+ ?_month = {},
+ ?_note = {}
}
endsnippet
snippet @inproceedings "Proceedings from conference" b
@inproceedings{${1:ref},
- author = "",
- title = "",
- booktitle = "",
- ?_editor = "",
- ?_volume = "",
- ?_number = "",
- ?_series = "",
- ?_pages = "",
- ?_address = "",
- ?_organization = "",
- ?_publisher = "",
- year = "",
- ?_month = "",
- ?_note = ""
+ author = {},
+ title = {},
+ booktitle = {},
+ ?_editor = {},
+ ?_volume = {},
+ ?_number = {},
+ ?_series = {},
+ ?_pages = {},
+ ?_address = {},
+ ?_organization = {},
+ ?_publisher = {},
+ year = {},
+ ?_month = {},
+ ?_note = {}
}
endsnippet
snippet @misc "Misc (website, etc.)" b
@misc{${1:ref},
- ?_author = "",
- ?_title = "",
- ?_howpublished = "",
- ?_year = "XXXX",
- ?_month = "",
- ?_note = ""
+ ?_author = {},
+ ?_title = {},
+ ?_howpublished = {},
+ ?_year = {XXXX},
+ ?_month = {},
+ ?_note = {}
}
endsnippet
diff --git a/vim/ultisnips/tex.snippets b/vim/ultisnips/tex.snippets
@@ -229,6 +229,10 @@ endsnippet
snippet ' "single quote" wA
\`$1'$0
endsnippet
+
+snippet par "Paragraph heading" b
+\paragraph{$1}$0
+endsnippet
# }}}
# Math {{{