Score:0

How to attach vim to a tmux session when opening text files in nemo?

cn flag

Question summary: How do we get vim to attach itself to a pre-existing tmux session when we click on a text file in nemo?

What I tried so far

I've installed the nemo file manager on Ubuntu 20.04. When I click on a text file, I have it open up in vim. I did this by specifying vim.desktop (which was installed by default in /usr/share/applications/) for plain-text files and markdown files in ~/.config/mimeapps.list:

text/plain=vim.desktop;
text/markdown=vim.desktop;

However, this opens up a completely new vim window. I would like it to automatically attach to a tmux session. How would go about doing this?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.