如何在Matlab GUI中将vim用作编辑器 [英] How to use vim as editor in Matlab GUI

查看:176
本文介绍了如何在Matlab GUI中将vim用作编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Matlab R2013b.我使用的是GUI,并且命令窗口和编辑器处于拆分屏幕中.在Matlab偏好设置>编辑器/调试器>编辑器中.有一个选项可以设置自定义编辑器,而不是Matlab编辑器.我将其设置为本地编辑器/usr/bin/vim,但随后我再也无法打开文件.可以在分屏模式下使用vim编辑器吗?

I am using Matlab R2013b. I am using the GUI, with the Command Windows and Editor in split screen. In the Matlab preferences > Editor/Debugger > Editor. There is an option to set a custom editor instead of the Matlab editor. I set it to my local editor /usr/bin/vim, but then I am not able to open files at all anymore. Is there a possibility to use the vim editor in split screen mode?

我知道!vim file.m,但这不是我正在寻找的解决方案,因为这仅在-nodisplay模式下可以令人满意.我宁愿保持分屏模式.

I am aware of !vim file.m, but this is not the solution I am looking for, as this only works satisfactory in -nodisplay mode. I rather want to keep the split screen mode.

推荐答案

我没有找到100%令人满意的解决方案,但是现在我正在使用

I did not find a solution that is 100% satisfying, but for now I am using tmux as an intermediate solution. It allows two use a split screen for two terminals. In one of those I can open matlab -nodesktop in terminal mode, and in the other one vim. It is possible to quickly switch between both split screens.

您可以通过键入commandhistorywho等来使用GUI Matlab的功能.

You can use functionality of GUI Matlab by typing things as commandhistory, who et cetera.

这篇关于如何在Matlab GUI中将vim用作编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆