daeyun / vim-matlab

Neovim plugin for MATLAB
Mozilla Public License 2.0
104 stars 19 forks source link

Unable to quit matlab server instance #17

Open krishnakumarg1984 opened 7 years ago

krishnakumarg1984 commented 7 years ago

After working for a while, I closed neovim and the terminal session. However, the MATLAB server instance does not seem to shut down. Even after forcefully killing the process with kill-9 , another instance keeps popping up. I'd like to fully stop the MATLAB server process.

daeyun commented 6 years ago

There's a kill_process.sh script. It kills both the matlab process and vim-matlab-server.py.

tofunth commented 6 years ago

Hi, thanks for the info! Furthermore, I wonder if we can kill the matlab server from neovim upon exiting. I can create an alias to the kil_process.sh and run it after done editing but it seems hacky ^^

daeyun commented 6 years ago

25e807d You can now press C-\ in the matlab server console to terminate without auto-restart. If you're not using pexpect, you can still use C-c to quit. Hopefully this works.

@tofunth I think that should be easy to implement as a vim command. And maybe the auto-exit can be turned on optionally, to avoid any surprises.