Skip to main content

All Questions

0 votes
1 answer
113 views

How does vim catch mouse scroll events?

I am writing a text editor. With 1049 (alternate screen) mode + 1000 (mouse tracking) mode enabled, the terminal is able to catch both mouse scroll events and click events. I do not need the click ...
user129393192's user avatar
3 votes
1 answer
712 views

Pipe output to command line editor for next command

I have been using sudo find / -iname '*foo*' 2>/dev/null | vim to get a list of directories/files containing foo, and then I inspect this list, edit it, and write a bunch of new commands inside of ...
minseong's user avatar
  • 837
5 votes
1 answer
2k views

How to open new files in a same Vim instance from my file manager or from command-line?

I don't usually navigate my filesystem from Vim, but instead use a file manager and sometimes even the good, old interactive shell (command line). Issuing vim file from the command line or from a ...
Quasímodo's user avatar
1 vote
0 answers
388 views

gnu screen stops working within applications

I am a regular user of GNU screen. There must be some quirk of my setup that is causing a strange problem that I can't reproduce. Maybe you can help me isolate it. My session has been going fine ...
enfascination's user avatar
3 votes
2 answers
6k views

How can I access a Vim process after closing its terminal on macOS?

This what I get when I run the ps command: $ ps PID TTY TIME CMD 14777 ttys000 0:00.25 -bash 19716 ttys000 0:00.15 vi templates/base.html 8240 ttys001 0:00.11 -bash 8284 ...
UtkarshPramodGupta's user avatar
10 votes
3 answers
3k views

How to `locate` multiple files and open them in vim?

Suppose that I have a file named filename123.txt and it is the single file that is named so, and I can locate it with the command locate filename123. And it returns only this file. Now I want to open ...
Santosh Kumar's user avatar