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

https://github.com/pseyfert/vim-cmake-help

(yet another way of) getting cmake help inside vim with shift-k
https://github.com/pseyfert/vim-cmake-help

Last synced: 5 months ago
JSON representation

(yet another way of) getting cmake help inside vim with shift-k

Awesome Lists containing this project

README

          

# vim-cmake-help
(yet another way of) getting cmake help inside vim with shift-k

Inspired by the [vim-go](https://github.com/fatih/vim-go) plugin, I figured I
could improve my cmake handling in vim. Searching before putting in some effort
on my side, I discovered also [vim-cmake](https://github.com/zchee/vim-cmake)
but appreciated the buffer handling by vim-go better (though both seemed a bit
complicated to me for not using `` and I didn't see an easy way to bodge
things together, so that's something I replaced on my side.

All the plugin does is open the result of `cmake --help-command `
upon the `shift-k` keystroke. And if that command fails, close the buffer
immediately. If there is already a Cmake documentation buffer, reuse it.

## deployment

The file sits atm in my `~/.vim/after/ftplugin/cmake.vim`.