stefanluptak

stefanluptak

Using Vim or Emacs for dual-monitor development workflow

Hi all,

I would like to follow up on the topic I posted here. Unfortunately, it seems that VSCode is not able to do this for me, so maybe I should try some other editor.

I am playing with the idea of using Vim (NeoVim, SpaceVim) or Emacs (Spacemacs) for development for quite long time already, so maybe now is the time to do it.

The only thing I am not sure about is the usage of Vim or Emacs on multiple monitors.

My idea of development workflow is to have the file tree + source + test on the main monitor and the terminal on the secondary one. Then with focus on the test file, run the test on current line (or run all tests in current file, or all tests in a project) with a keyboard shortcut and see the results on the terminal on the second monitor. Also switch between the terminal and the sources quickly with a keyboard shortcut, etc.

My monitors are not the same resolution, so a “solution” to just maximize one instance of editor across two monitors would not work for me.

From all the articles I read, I guess maybe tmux could help or using vim in a client/server mode, but honestly, I have no idea how to achieve something like I mentioned above.

I assume my idea of workflow is not unique and lot of you here are already doing this. I would really appreciate some of your knowledge in this area or your experience setting up this kind of workflow. I hope I described my situation clearly.

Thanks a lot. :slight_smile:

Most Liked

NobbZ

NobbZ

I do pretty much the same as described by @lucaong. Though I use emacs.

Depending on the terminal emulator you use you could even send clicks on filename:line:column: to Emacs.

Alternatively just start a single Emacs demon, connect 2 clients to it, each in it’s own “frame”.

How you then switch between those frames is more a problem of your window manager rather than the editor.

Personally I live to use awesome-wm, though after a reinstall of my system, I haven’t yet found the time to set it up again…

lucaong

lucaong

Vim user here. What I usually do is to start a terminal in a separate window (or terminal split if working on a single screen) and use something like mix-test.watch to run relevant tests whenever I save a file.

That tends to be much simpler to configure and versatile than other possibilities.

Where Next?

Popular in Questions Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New

Other popular topics Top

lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement