Skip to content

Bind to vim make command and jump to C++ compilation error when using RCpp #4

Description

@abossenbroek

I like your package but it doesn't give me as much feedback as RStudio. I am specially looking to bind the vim :make command so that it compiles the package and jumps to the compilation error in my C++ files. Is there any way that I can achieve that sort of functionality?

Activity

  1. mllg commented on Sep 14, 2016

    @mllg
    Owner

    If you already have a Makefile, then you just have to teach vim the format of the output (see help on errorformat) to populate the quickfix with jump locations.

    For a start, you could try:

    :setlocal makeprg=R\ CMD\ INSTALL\ .
    :make
    :copen

    However, you will notice that lines starting with "*" needs to be filtered out. If I find time, I'll have a look how this could be integrated into my plugin. If you do make any progress in the meantime, please keep me posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions