mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 19:40:29 +01:00
32 lines
502 B
Plaintext
32 lines
502 B
Plaintext
snippet date "Current date"
|
||
`!v strftime("%Y-%m-%d")`
|
||
endsnippet
|
||
|
||
snippet datetime "Current datetime"
|
||
`!v strftime("%Y-%m-%d %H:%M:%S")`
|
||
endsnippet
|
||
|
||
snippet - "a dash, used for concatenating words"
|
||
‐
|
||
endsnippet
|
||
|
||
snippet ~ "shy, used for hyphenation hints"
|
||
|
||
endsnippet
|
||
|
||
snippet fn "filename"
|
||
`!v expand("%")`
|
||
endsnippet
|
||
|
||
snippet fp "full path filename"
|
||
`!v expand("%:p")`
|
||
endsnippet
|
||
|
||
snippet uuid "UUID" !b
|
||
`!p import uuid
|
||
if not snip.c:
|
||
snip.rv = str(uuid.uuid4())`
|
||
endsnippet
|
||
|
||
# vim:ft=snippets:
|