From 6d2fbc2ac5b953013c02f14dc3a9f66fe5695785 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 4 Apr 2019 17:24:32 +0100 Subject: [PATCH] Add cmake surround for generator expressions --- after/ftplugin/cmake.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/after/ftplugin/cmake.vim b/after/ftplugin/cmake.vim index 36e3bd8..8f9a022 100644 --- a/after/ftplugin/cmake.vim +++ b/after/ftplugin/cmake.vim @@ -7,5 +7,9 @@ setlocal foldmethod=syntax setlocal commentstring=#%s " Custon surround for creating a CMake variable from a text object. -" "ys{motion}v" makes a variable out of "" - > "${}" +" "ys{motion}v" makes a variable out of "text-obj" -> "${text-obj}" let b:surround_{char2nr("v")} = "${\r}" + +" Custom surround for createing a CMake generator expression from a test object. +" "ys{motion}g" makes a generator expression out of "text-obj" -> "$" +let b:surround_{char2nr("g")} = "$<\r>"