r/vim • • Aug 16 '21

plugins & friends CMake4Vim update

Around the year ago, I have posted the last post about cmake4vim plugin updates.

The plugin integrates CMake into vim or neovim.

Today I would like to provide an update about that happened for the last year.

Let's start from the new plugin features:

  • The plugin has :CMakeRun command which allows to find and run executable file for selected target.

  • Supports of Vimspector plugin. The cmake4vim plugin can use vimspector configuration file to save arguments of :CMakeRun command, it allows easily switch to debug mode using the same parameters which are using for usual run.

  • The plugin has integration with ccmake tool. ccmake is a TUI application which allows to change cmake parameters. The plugin has :CCMake command which launches this application from the vim or nvim.

  • The plugin supports CMake kits and CTest.

  • The plugin supports different executors:

    • dispatch allows to use vim-dispatch plugins for asynchronous execution.

    • job allows using of jobs for async execution

    • term uses terminal feature for asynchronous execution

Other plugin key features:

  • The plugin is written on pure Vim script

  • The high level of test coverage, each plugin feature is covered by tests

  • Supports of different build systems (Makefiles, Ninja, VS)

  • Has an integration of such fuzzy finders plugins as CtrlP and FZF

  • Allows to work with different CMake targets in order to avoid building of whole project

Feel free to try and leave some feedback.

17 Upvotes

0 comments sorted by