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
- Host: GitHub
- URL: https://github.com/pseyfert/vim-cmake-help
- Owner: pseyfert
- License: bsd-3-clause
- Created: 2018-11-07T10:31:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-07T15:08:34.000Z (over 7 years ago)
- Last Synced: 2025-04-12T04:00:50.471Z (about 1 year ago)
- Language: Vim script
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.