Curious, are there any tips for getting vim setup quickly in the exam to help av . . .

Dustin:
Curious, are there any tips for getting vim setup quickly in the exam to help avoid YAML errors? I am wondering if we can even do any vim config for the exam. I was considering writing a vimrc in advance and grabbing it via the terminal once starting the test (if allowed).

Al West:
You wouldn’t be allowed to download any files into your session. You can create yaml files by running kubectl command -o yaml --dry-run=client > myfile.yaml

Georgia Leng:
I wrote a sticky note on my desk for like a month leading up to exam to memorise my .vimrc

I have

set ts=2 sts=2 sw=2
set expandtab
set number ruler
set autoindent smartindent
syntax enable
filetype plugin indent on

and this gives me what I want.
I just set it up really quickly at the start.

I think you’ll find this valuable :slightly_smiling_face:

steps through some things that are really valuable
https://kube.academy/courses/how-to-prepare-for-the-cka-exam/lessons/editing-yaml-with-vim

you aren’t able to copy a prepared .vimrc beforehand I’m afraid - but you can memorise these and set it up real quick at the beginning. just

vim .vimrc

and rote learn your configs :sweat_smile:

I use vimplugin for vscode so I have these settings usually anyway but ofc don’t have to remember them, but sticky note on the desk for a while got it in my head.

take note of :set paste :set list :retab handy during exam.

I also noticed that copy and paste always formatted wrong in the <http://killer.no|killer.sh no> matter what (I didn’t wanna waste time finding out in the actual exam, but the environment seemed same so probably), so if you find this, my tip if I wanted to copy some yaml that you can’t generate with a k create .... --dry-run -o yaml &gt;&gt; blah.yaml and find it’s just off when you paste, I just echo and paste my yaml and redirect that instead and it formats perfectly :rolling_on_the_floor_laughing:

like echo "&lt;yaml snippet&gt;" &gt;&gt; myyaml.yaml

Matthew Robinson:
Every time I started one of the KodeKloud labs the first thing I did was configure the .vimrc so that it was burned in to my memory when it came time for the exam.