From 74050a766cd6cba13d80074ef6ac2cb6e6a8a69c Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 22 Jan 2024 11:17:11 -0500 Subject: [PATCH] Add skeleton.yaml --- fake_home/.vim/templates/skeleton.yaml | 34 ++++++++++++++++++++++++++ fake_home/.vimrc | 1 + 2 files changed, 35 insertions(+) create mode 100644 fake_home/.vim/templates/skeleton.yaml diff --git a/fake_home/.vim/templates/skeleton.yaml b/fake_home/.vim/templates/skeleton.yaml new file mode 100644 index 0000000..99a9bc0 --- /dev/null +++ b/fake_home/.vim/templates/skeleton.yaml @@ -0,0 +1,34 @@ +--- + +apiVersion: v3 +kind: Pod +metadata: + name: Some example YAML +spec: + simpleList: + - "Hello" + - "World!" + listOfMaps: + - name: front-end + image: nginx + ports: + - containerPort: 80 + - name: web-reader + image: web-reader-engine + ports: + - containerPort: 88 + +--- + +aSecondDocument: In the same file! + +preserveNewlines: | + Each of these + newlines will be + broken up. + +autoWrap: > + This text is wrapped + and will be formed into + a single paragraph with + a trailing newline. diff --git a/fake_home/.vimrc b/fake_home/.vimrc index 129dca4..21c6f98 100644 --- a/fake_home/.vimrc +++ b/fake_home/.vimrc @@ -172,6 +172,7 @@ if has ("autocmd") autocmd BufNewFile *.jsx 0r ~/.vim/templates/skeleton.jsx autocmd BufNewFile *.tsx 0r ~/.vim/templates/skeleton.tsx autocmd BufNewFile *.json 0r ~/.vim/templates/skeleton.json + autocmd BufNewFile *.yaml 0r ~/.vim/templates/skeleton.yaml autocmd BufNewFile *.go 0r ~/.vim/templates/skeleton.go autocmd BufNewFile Makefile 0r ~/.vim/templates/Makefile autocmd BufNewFile Dockerfile 0r ~/.vim/templates/Dockerfile