diff --git a/after/ftplugin/cmake.vim b/after/ftplugin/cmake.vim index 2095f62..25c8833 100644 --- a/after/ftplugin/cmake.vim +++ b/after/ftplugin/cmake.vim @@ -14,3 +14,7 @@ setlocal foldmethod=indent " Set comment string setlocal commentstring=#%s + +" Custon surround for creating a CMake variable from a text object. +" "ys{motion}v" makes a variable out of "" - > "${}" +autocmd FileType cmake let b:surround_{char2nr("v")} = "${\r}"