Nikhil Keni:
Folks, we can use nano editor for the CKA exam correct? if we do that instead of traditional vim, how many machines to we need to export the KUBE_EDITOR variable and tweak the .nanorc file?
Paul:
Yes you can. I use nano in all of the exams and just use 2 config for ~/.nanorc. Machines, you mean nodes? you need to apply it to all of them if you want to use nano in all of them
set tabsize 2
set tabstospaces
Nikhil Keni:
thanks, glad nano is allowed, i just cant get vi editor right
Priyanka Maheshwari:
for vi editor which file we need to edit with these ?
Priyanka Maheshwari:
k8s@terminal:~$ vi ~/.
./ .bash_history .bashrc .profile .ssh/
../ .bash_logout .kube/ .shell/ .viminfo
k8s@terminal:~$ vi ~/.
Adeola Adefolaju:
I think it is ~/.vimrc
Priyanka Maheshwari:
i need to add these
set tabsize 2
set tabstospaces
Adeola Adefolaju:
I need to add it as well but do not know how to.
Prince Bansal:
If you are using vim below config will help a lot to avoid unnecessary issue while editing/copying yaml files.
set tabstop=2
set expandtab
set shiftwidth=2
OR short version
set ts=2
set expandtab
set sw=2
Just add above lines in ~/.vimrc
.
Note: You have to remember these vim settings. You can’t copy paste from local during exam.