You are not logged in.

#1 2015-03-25 10:05:02

garbochock
Member
Registered: 2014-10-07
Posts: 12

Sending message vim to open window in dvtm [SOLVED]

Hi Forum,

this is not really a arch-related however it is application-related.

I am running supercollider (programming language for producing sound) on vim and I have this laptop which is rather old that I use as a sort of typewriter, however, I have not been succesfull at setting it up to run vim with the plugin.

The problem is that supercollider needs a terminal to run the actual language and send messages to me. It is setup on my desktop computer to excecute in a terminator window, as such:

(From vimrc):
let g:sclangTerm = "terminator -x $SHELL -ic"

But I can not figure out what to replace this with in order to run it without a window manager. I was hoping to get it working with dvtm, essentially opening up new shell window where sclang is to be run. I have no idea how to get this across through vimrc.

Does anyone have a clue? It would be most helpful!

Last edited by garbochock (2015-03-25 11:13:55)

Offline

#2 2015-03-25 10:30:28

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Sending message vim to open window in dvtm [SOLVED]

If you do not want any kind of GUI you can always use the tty. Terminator's features are useless when you learn GNU/screen or tmux.

Offline

#3 2015-03-25 10:36:49

garbochock
Member
Registered: 2014-10-07
Posts: 12

Re: Sending message vim to open window in dvtm [SOLVED]

Certainly!
The tty is great and I've been messing around in it on my desktop.

However, I don't know what message to send to vim - to get it to succesfully excecute sclang in the tty. As stated, preferably in a new window of dvtm.

Offline

#4 2015-03-25 10:39:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Sending message vim to open window in dvtm [SOLVED]

You can run a light WM, e.g. dwm or stay in the tty.
You boot into a shell (e.g. bash) and start vim. If you want, you can start dvtm, tmux or screen first, then start vim inside them. You can use other ttys (switch with Ctrl-Alt-F1, F2 etc.) if you prefer it this way.

Offline

#5 2015-03-25 10:44:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Sending message vim to open window in dvtm [SOLVED]

I don't know dvtm that well, but in tmux, you'd just use "tmux new-window" followed by an optional command to run in that new window (a shell is the default).  I just bound "tmux new-window htop" to a key in vim, and it behaved as expected.

Could you please revise your title to actually resemble the question.  This has nothing to do with running vim without a WM, to do that, you just type "vim".

Also please describe your setup.  Have you built your own supercollider package?  If not, you need X (and even qt4 and webkit) installed already as dependencies.  Running X with a light (or no) WM hardly requires any system resources if you already have X installed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2015-03-25 11:13:18

garbochock
Member
Registered: 2014-10-07
Posts: 12

Re: Sending message vim to open window in dvtm [SOLVED]

Trilby wrote:

I don't know dvtm that well, but in tmux, you'd just use "tmux new-window" followed by an optional command to run in that new window (a shell is the default).  I just bound "tmux new-window htop" to a key in vim, and it behaved as expected.

Could you please revise your title to actually resemble the question.  This has nothing to do with running vim without a WM, to do that, you just type "vim".

Also please describe your setup.  Have you built your own supercollider package?  If not, you need X (and even qt4 and webkit) installed already as dependencies.  Running X with a light (or no) WM hardly requires any system resources if you already have X installed.

I realize now that this is alltogether a dvtm-issue and will do my own research from now on. Your idea with tmux worked quite fine.
Actually it's really a vanity-project. I sort of like the idea of running my laptop without X altogether, even thought it certainly would manage.

Regarding the dependencies of supercollider, it runs well w/o X after some fiddling:
https://github.com/supercollider/superc … issues/867

Thank you for your swift response.

Offline

Board footer

Powered by FluxBB