An open API service indexing awesome lists of open source software.

https://github.com/agateau/mymake

Make wrapper which makes it possible to go through errors with vim
https://github.com/agateau/mymake

Last synced: 9 months ago
JSON representation

Make wrapper which makes it possible to go through errors with vim

Awesome Lists containing this project

README

          

# What is it

A wrapper for make which logs to /tmp/mymake.err and a Vim macro to load the
log output as if compilation was started from Vim, making it possible to use
Vim functions to jump through errors.

It can also make use of `notify-send` if it is installed to notify you at the
end of the build.

# Installation

Run `make install`

This will install the `mymake` command to ~/.local/bin and the Vim plugin to
~/.vim/after/plugin.

mymake uses make by default but you can overload it with the MAKEPRG
environment variable.

# Usage

Build with mymake instead of make. If an error occurs, start Vim and use
:MymakeErr to load the errors. You can then navigate with the standard Vim
commands :cprev and :cnext.

## Tip
If you are not familiar with Vim, you may want to add this to your .vimrc:

map :cprev
imap :cprevi
map :cnext
imap :cnexti

With those you can use F4 to go to the next error and Shift+F4 to go to the
previous error.

# Author

Aurélien Gâteau