Questions tagged [make]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
33 views

How do I prevent the :make command to behave like a external command?

When I use :make, the command first shows me the shell and has me press Enter and only then do I get to the actual error in the file. Is there a reason for this behaviour ? Can I get rid of it ?
user avatar
  • 307
1 vote
0 answers
26 views

How can I compensate for vim and make not using the same working directory?

I have a project where make and vim are run from different directories. The project structure looks like this: root/ ├── build │   └── gmake_linux │   ├── bin │   │   └── Debug │   ...
user avatar
  • 197
0 votes
1 answer
71 views

Automatically launch debugging session if make succeeds, quickfix list otherwise

Currently, I have begun using vim for C++ projects. I use vimspector for debugging help. This offers a command :call vimspector#Launch() to debug the current successful build. To build the current ...
user avatar
  • 165
1 vote
1 answer
31 views

Issue with makeprg Shell Script $? Variable

I have the following .vimrc: let &makeprg="./run-tests" The contents of run-tests: #!/bin/sh error_file=$(mktemp) coverage run --source "$PWD" --branch -m pytest tests/ >&...
user avatar
0 votes
1 answer
48 views

Can I execute the make command only on selected lines?

Let's say I have the following script: sudo apt update sudo apt upgrade sudo apt install jq sudo apt install jo If I use the command :set makeprg=bash\ % | make inside Vim, the system will ask me my ...
user avatar
  • 385
1 vote
1 answer
98 views

How can I return to the file that I'm editing when I execute it from inside Vim?

Let's say that I have the following node.js script: console.log("test") If I use the command :set makeprg=node\ % | set autowrite | make I'll execute this node.js code and see the following ...
user avatar
  • 385
1 vote
2 answers
68 views

How do you prevent a new window from opening when running :make

Whenever I run :make in Vim, it always takes control away from my buffer, places me in a temporary view where I see the makeprg's output and then prompts me to "Press ENTER or type command to ...
user avatar