01b027b5ac
Support snippet templates and add help snippets
...
Add `autocmd` to automatically expand the `_template` snippet on the
`BufNewFile` event, if the expansion fails because the `_template`
snippet does not exist for the current `filetype` undo the changes. Do
the same thing when the `filetype` changes to `help`, since these are
`text` files to begin with the first `autocmd` has no effect.
2019-03-31 15:04:08 +01:00
baff9ae3fd
Improve global snippets
...
* `todo`, `note` now do not add comment strings when in a comment line
* `fixme` added to match `todo` and `note
* `date` renamed `datetime` and updated to match the unix `date` command
* `date`, `time` added inserting only the date or time now
* `utc` updated, no longer spitting the timezone offset
2019-03-30 17:07:29 +00:00
91c85da67b
Add C ANSI color escape sequence snippets
2019-03-27 10:01:55 +00:00
84e310a28f
Fix Python 3 issue in todo snippet
2019-03-23 23:15:13 +00:00
ce6ec3d410
Improve vim function snippet
2019-03-23 21:06:45 +00:00
c8ac5496ca
Add Python raw string snippet
2019-03-17 14:56:25 +00:00
74c73066f4
Escape ¯\_(ツ)_/¯ snippet except in text documents
2019-03-08 15:48:54 +00:00
aff61cd8a8
Change *x snippet to mark the checkbox checked
2019-02-27 09:40:42 +00:00
709408fdeb
Add lit global ID regex snippet
2019-02-27 09:40:34 +00:00
d0ce0a66ad
Add more flexible lit regex snippets
2019-02-26 16:19:22 +00:00
97904dd47e
Add shrug and tableflip snippets
2018-12-03 11:39:51 +00:00
34ba64980a
Change main C snippet to an array of const char*
2018-12-03 11:39:51 +00:00
3a60c0abcf
Improve static_assert snippet & increase sync minlines
2018-11-30 17:46:46 +00:00
446063c2e3
Add sizeof, decltype, and declval snippets
2018-11-30 17:46:46 +00:00
6c818dd2d7
Remove duplicate Doxygen snippets
2018-08-28 11:11:56 +01:00
10fd48a703
Improve cpp template snippet
2018-08-26 10:51:11 +01:00
6cc8627c97
Add a lit named ID match snippet
2018-08-26 10:51:11 +01:00
456e52467a
Update C++ namespace snippet to match clang-format
...
New snippet outputs this
```cpp
namespace {
} // namespace
```
instead of
```cpp
namespace {
} // anonymous
```
and this
```cpp
namespace foo {
} // namespace foo
```
instead of
```cpp
namespace foo {
} // foo
```
2018-08-26 10:51:11 +01:00
2c842cea09
Add Doxygen @retval snippet & other improvements
2018-08-26 10:51:11 +01:00
83114d25a9
Add extern "C" block snippet
2018-08-26 10:51:11 +01:00
287e52fb2a
Add bool to C string snippet
2018-08-26 10:51:11 +01:00
f4915efffd
Add string_view c++ printf snippet
2018-08-26 10:51:11 +01:00
ec0ad0ae00
Add another variant of GitHub checkbox snip
2018-08-26 10:51:11 +01:00
ce97e935a8
Add more intuitive GitHub checkbox snippet
2018-08-26 10:51:11 +01:00
d4239e2dc3
Add more Doxygen snippets for C/C++
2018-08-26 10:51:09 +01:00
5f2c083d7b
Fix Markdown fenced code block snippet
2018-08-26 10:50:08 +01:00
07c093e9e0
Add python snippet to insert ipdb breakpoint
2018-08-26 10:50:08 +01:00
08f3f8d38f
Add CMake debug snippet
2018-08-26 10:50:08 +01:00
0f852b0518
Add fprintf debug snippet for C/C++ files
2018-08-26 10:50:08 +01:00
2dea77ba81
Add asciidoc refpage snippet
2018-08-26 10:50:08 +01:00
c2799dd5de
Add vim command snippet
2018-08-26 10:50:08 +01:00
aecdb9a11a
Add augroup vim snippet
2018-08-26 10:50:08 +01:00
bd2301e3e8
Add main Python snippet
2018-08-26 10:50:07 +01:00
c2040731f2
Add zsh snippets
2018-08-26 10:50:07 +01:00
60664eaa16
Add std::printf and std::fprintf snippets
2018-08-26 10:50:07 +01:00
06633f3394
Add ; to do/while snippet
2018-08-26 10:50:07 +01:00
c727e7647a
Allow C++ lambda snippet to be inline
2018-08-26 10:50:07 +01:00
6736b8d8a3
Improve doxygen header snippet
2018-08-26 10:50:05 +01:00
27110ff0ea
Change markdown fenced code block snippet trigger
2018-08-26 10:49:14 +01:00
53782a0213
Add markdown frontmatter snippet
2018-08-26 10:49:14 +01:00
b6ae985dd2
Add markdown link snippet
2018-08-26 10:49:14 +01:00
c513b908dc
Add utc date time snippet
2018-08-26 10:49:14 +01:00
b27cee4756
Change div snippet, add nav snippet for html
2018-08-26 10:49:14 +01:00
f851feb40d
Add javascript function snippet
2018-08-26 10:49:14 +01:00
e8af28bc59
Set all.snippets to -1 priority
2018-08-26 10:49:14 +01:00
1a2f732259
Add std::enable_if snippet
2018-08-26 10:49:14 +01:00
927889ce74
Remove macro_mode functions, use vim-replace
2018-08-26 10:49:14 +01:00
dd257d069d
Add doxygen @see snippet
2018-08-26 10:49:13 +01:00
d730b5b7d9
Default to a space in * [ ]
snippet
2018-08-26 10:48:16 +01:00
804c05e3e1
Improve some CMake snippets
2018-08-26 10:48:16 +01:00