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 pwd
and cwd
in command mode can get the current directory.
And :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.
:Explorer
is useful to help me edit the files, but it's too difficult for it to startup other programs.