Hello! 😊 For yaml, should I use use spaces instead of tabs? [using vim] -& . . .

Edith Puclla:
Hello! :blush:
For yaml, should I use use spaces instead of tabs? [using vim] -> looks like they don’t like tabs :thinking_face:

controlplane $ k create -f pod.yaml 
error: error parsing pod.yaml: error converting YAML to JSON: yaml: line 12: found a tab character that violates indentation
controlplane $ vim pod.yaml 

unnivkn:
Yes…thats correct. you have to use spaces instead of tabs

Edith Puclla:
thanks a lot

chris resnik:
i only found this out recently and it really helped me:

  1. vim .vimrc (edits the vim config file)

chris resnik:
2. add these lines:
set number
set list

chris resnik:
close by :wq

chris resnik:
number shows the linenumbers

chris resnik:
list shows invisible characters like tabs

Edith Puclla:
let me try :slightly_smiling_face:

Edith Puclla:
What should I configure here: vim .vimrc?

chris resnik:
that’s the command to run in the terminal (I assume you are on MacOs or Linux)

Edith Puclla:
I am on Linux :slightly_smiling_face:

chris resnik:
ok, then open a terminal

Edith Puclla:

Screenshot from 2021-05-26 17-52-36.png

chris resnik:
type:
vim .vimrc
then press enter

chris resnik:
yes

chris resnik:
in that file, enter insert mode (press i)

Edith Puclla:
okey

Edith Puclla:
then? :slightly_smiling_face:

Edith Puclla:
what I should change there?