Windows – How to set vim as the default text editor?

I am trying to configure gVim to be the default text editor in Windows, but it will not work. It works with notepad ++, editor … but not with Vim. Any ideas to solve it?


I also tried to choose gvim.exe with the option that opens the browser. if I open it it works, but it does not save Vim as the default text editor.