Skip to content

Vim plugin for using cppman #82

Description

@gauteh

I wanted to use cppman from within an existing VIM instance rather than launching a new vim instance pager. Your existing script for the vim-pager provides most of the necessary parts, but some things had to be changed. I created a small plugin, heavily based on your script, for this purpose: https://github.com/gauteh/vim-cppman

It sets itself up whenver C++ or C files are opened so that keywordprg and iskeyword settings utilize cppman. The keywordprg sets up a new vert buffer which loads cppman in the same way as cppman.vim does.

Perhaps this should rather be included in cppman as a vim plugin? A few other modifications I had to make: use winwidth(0) rather than &co. Only load when for C++.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions