simplysh / papaya

Alternative Vim compiler support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Papaya

Alternative Vim compiler support

papaya screenshot

Motivation

Papaya is a simple plugin to streamline running the C compiler from within Vim.

I found the native Vim compiler support too cumbersome for my needs so I decided to create a basic script. I also wanted to take advantage of Vim's newly introduced virtual text support.

How it works

Papaya will use the value of your makeprg variable to run the compiler. Alternatively, you can set the command using:

set g:papaya_make='command'

If there are compilation errors, Papaya will annotate the current buffer using virtual text (only works with Vim 9).

Papaya also populates the quick fix list.

Commands

To run Papaya, use:

:PapayaMake

To see the original compilation output, use:

:PapayaOutput

To clear virtual text annotations, use:

:PapayaClear

About

Alternative Vim compiler support

License:GNU General Public License v3.0


Languages

Language:Vim Script 100.0%