mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 10:57:58 +00:00
e5222304a1
I've migrated to Neovim because of one thing... Luke Smith-senpai... Ever since I've seen him typed 'nvim' in his recent videos, I was devastated. All of those hours that my little heart and soul poured into creating a 130-line vimrc to configure Vim to its absolute in the way I wanted to use was gone. All of those 7 days and a few minutes every now and then, are crushed. It is truly a betrayal to see it use a modernized version of a relic of the past. I first thought, "How dare he?". I was not able to sleep well the following days. It was heart-wrenching. Out of spite, I've tried to. I've nothing left and you know there is a saying 'a weeb with nothing got nothing to lose'. All it took was to rename certain files, reinstall the plugin manager and its plugins, a grand total of 5 minutes. My heart skipped a beat. It was like being a birb with broken wings trying to fly and eventually didn't left off until its talon is in the ground. And the ground is Neovim. Now I love Neovim more than ever... Thank you Luke Smith Unaboomer-kun-senpai. It was truly a wonderful experience.
71 lines
1.3 KiB
Plaintext
71 lines
1.3 KiB
Plaintext
global !p
|
|
from datetime import datetime, timedelta
|
|
|
|
def relative_date(days):
|
|
time_difference = timedelta(days=int(days))
|
|
calculated_date = datetime.today() + time_difference
|
|
|
|
return calculated_date
|
|
endglobal
|
|
|
|
snippet "reldate (\d+)" "Prints out the relative date in ISO format." ri
|
|
`!p
|
|
reldate = relative_date(match.group(1))
|
|
snip.rv = reldate.strftime("%F")
|
|
`
|
|
endsnippet
|
|
|
|
snippet today "Prints out today's date in ISO format" i
|
|
`!p
|
|
from datetime import datetime
|
|
|
|
snip.rv = datetime.today().strftime("%F")
|
|
`
|
|
endsnippet
|
|
|
|
snippet sign "Quick signature" i
|
|
${1:Sincerely,}
|
|
${2:Gabriel Arazas}
|
|
$0
|
|
endsnippet
|
|
|
|
snippet ie "Parenthetical material Latin 'id est' (ie)" iw
|
|
(i.e., $1) $0
|
|
endsnippet
|
|
|
|
snippet eg "Parenthetical material Latin 'exempli gratia' (eg)" iw
|
|
(e.g., $1) $0
|
|
endsnippet
|
|
|
|
snippet em "Quick em dash"
|
|
—
|
|
endsnippet
|
|
|
|
snippet em-mat "Em dash material" iw
|
|
— $1 — $0
|
|
endsnippet
|
|
|
|
snippet em-ie "'id est' surrounded with em dash" iw
|
|
— i.e., $1 — $0
|
|
endsnippet
|
|
|
|
snippet em-eg "'exempli gratia' surrounded with em dash" iw
|
|
— e.g., $1 — $0
|
|
endsnippet
|
|
|
|
# Quick word snippets
|
|
# Each of these quick word snippets has a prefix of `qw-`
|
|
snippet qw-lx "LaTeX" iw
|
|
LaTeX
|
|
endsnippet
|
|
|
|
snippet qw-as "Asciidoctor" iw
|
|
Asciidoctor
|
|
endsnippet
|
|
|
|
# Miscellaneous snippets
|
|
snippet #! "Quick snippet for a shebang." bi
|
|
#!${1:/usr/bin/env} ${2:sh}
|
|
endsnippet
|
|
|