The problem is solved
My purpose is that: I use vim to edit my m-file and debug it in Matlab. There is no easy-to-use interface plugin between vim and Matlab in Win10. So I just edit m-file in vim and run it in Matlab. Sometimes these m-files may be in different directories, so this function can help me to find them quickly.
My system is Win10, and I use gvim.
In vim, I know
cwd in command mode can get the current directory.
:let g:myvars=expand('%:p:h') to pass the directory to vim script variable.
I also know
:! some_cmd_command to execute the cmd command in vim.
I want to implement such a function, that is, let vim open the file manager of the current path, How should I do? Thanks a lot.