Skip to content

Plugin for use of cppman ("C++ 98/11/14 manual pages for Linux/MacOS" ) from within Vim

Notifications You must be signed in to change notification settings

BeomjoonGoh/vim-cppman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

vim-cppman

Based on gauteh's vim-cppman. Modified by Beomjoon Goh to be used in new tab instead of opening in vertical split and to correct syntax highlighting crash with tabline.

A plugin for using cppman from within Vim. cppman is used to lookup "C++ 98/11/14 manual pages for Linux/MacOS" through either cplusplus.com or cppreference.com.

Originally cppman uses Vim to page and syntax highlight the man page, but it is not set up to be used in buffer in an existing VIM instance. That is what this small plugin does.

This is heavily based on the existing cppman.vim which is used for the Vim pager.

Usage

The keywordprg and iskeywordsettings are automatically set for C++ and C files. Otherwise use the same keybindings as in cppman:

Move the cursor to the keyword and hit K to lookup the keyword in a new buffer.

You can also use e.g. :Cppman iostream to lookup a keyword.

Installation

1.) Install cppman

2.) Install this plugin using your favourite plugin manager.

About

Plugin for use of cppman ("C++ 98/11/14 manual pages for Linux/MacOS" ) from within Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%