diff options
| author | Anton Bobov <anton@bobov.name> | 2024-06-18 23:10:41 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2024-06-18 23:10:41 +0500 |
| commit | 26a846bcbc825bc2a9837f5c9ee0e011cf02b5d3 (patch) | |
| tree | ed47f2d1db9f31cf1de86251016088265e2a1c1e /files/.vim | |
| parent | cf6a48eced4fe941d8c18ce9f73d93b13e57ff6b (diff) | |
[vim] Templates and snippet
Diffstat (limited to 'files/.vim')
| -rw-r--r-- | files/.vim/UltiSnips/sh.snippets | 4 | ||||
| -rw-r--r-- | files/.vim/templates/=template=.timer | 11 | ||||
| l--------- | files/.vim/templates/=template=compose.yaml | 1 | ||||
| l--------- | files/.vim/templates/=template=compose.yml | 1 |
4 files changed, 17 insertions, 0 deletions
diff --git a/files/.vim/UltiSnips/sh.snippets b/files/.vim/UltiSnips/sh.snippets index 37288ae..6cedc37 100644 --- a/files/.vim/UltiSnips/sh.snippets +++ b/files/.vim/UltiSnips/sh.snippets @@ -34,3 +34,7 @@ endsnippet snippet psqlq psql --no-psqlrc --quiet --no-align --tuples-only endsnippet + +snippet usage +echo "Usage: ${0##*/}" +endsnippet diff --git a/files/.vim/templates/=template=.timer b/files/.vim/templates/=template=.timer new file mode 100644 index 0000000..538661b --- /dev/null +++ b/files/.vim/templates/=template=.timer @@ -0,0 +1,11 @@ +[Unit] +Description=%FILE% timer + +[Timer] +# OnBootSec=2m +# OnUnitActiveSec=10m +# OnCalendar=*:* +Unit=%FILE%.service + +[Install] +WantedBy=timers.target diff --git a/files/.vim/templates/=template=compose.yaml b/files/.vim/templates/=template=compose.yaml new file mode 120000 index 0000000..cb5b7ac --- /dev/null +++ b/files/.vim/templates/=template=compose.yaml @@ -0,0 +1 @@ +=template=docker-compose.yml
\ No newline at end of file diff --git a/files/.vim/templates/=template=compose.yml b/files/.vim/templates/=template=compose.yml new file mode 120000 index 0000000..cb5b7ac --- /dev/null +++ b/files/.vim/templates/=template=compose.yml @@ -0,0 +1 @@ +=template=docker-compose.yml
\ No newline at end of file |
