Add vim-surround cmake mapping to make a variable

This commit is contained in:
Kenneth Benzie 2016-08-23 10:51:46 +01:00
parent ad59766ace
commit eb3550a197

View File

@ -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 "<text-obj>" - > "${<text-obj>}"
autocmd FileType cmake let b:surround_{char2nr("v")} = "${\r}"