dotfiles/nvim/own-snippets/sh.snippets
foo-dogsquared e5222304a1 Create a custom manager and migrate to nvim
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.
2020-03-29 20:23:44 +08:00

27 lines
420 B
Plaintext

snippet if "If statement" iw
if [[ ${1:<condition>} ]]; then
${2:<expression>}
fi
endsnippet
snippet while_shift "A dependency-less option parser" iw
while [[ $# -gt 0 ]]; then
do
case $1 in
-h|--help)
echo "$help_section"
exit 0
;;
$2
esac
done
endsnippet
snippet while "While loop" iw
while ${1:<expression>};
do
${2:<expression>}
done
endsnippet