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