Regarding vi editor saving commands

Hi,
I have used the vi editor before but one provided by kodekloud is not working out for me
neither i am able to save my file using vi edit not i can edit my pods.

Any help would be appreciated thanks.

You can only edit certain fields in the pod using kubectl edit po like spec.containers[].image, spec.initContainers[].image, spec.activeDeadlineSeconds or spec.tolerations. So you will not be able to save any other fields.