Sudo: vim: command not found

Actually now im installing all frappe and erpnext in new system.
For installation guide i used this "[Guide] How to install ERPNext v14 on Linux Ubuntu (step-by-step instructions) "

Now im in this step : 3.2 Edit the MySQL default config file
this is the command given in that website: “sudo vim /etc/mysql/my.cnf”
but terminal gives : “sudo: vim: command not found.”
How can i use this vim editor. or give me the correct command for edit the MySQL default config file using nano editor.

Actually guys solved my problem using nano editor
i just used nano istead of VIM "sudo nano /etc/mysql/my.cnf” and edited my file.

But i still dont know how to solve this “sudo: vim: command not found” if anyone know means just tell me.

Hi,

What does : apt-cache policy vim return? Is vim installed?

$ apt-cache policy vim

vim:
Installed: (none)
Candidate: 2:8.2.3995-1ubuntu2.17
Version table:
2:8.2.3995-1ubuntu2.17 500
500 Index of /ubuntu jammy-updates/main amd64 Packages
2:8.2.3995-1ubuntu2.16 500
500 Index of /ubuntu jammy-security/main amd64 Packages
2:8.2.3995-1ubuntu2 500
500 Index of /ubuntu jammy/main amd64 Packages