Add vim-surround cmake mapping to make a variable
This commit is contained in:
parent
ad59766ace
commit
eb3550a197
@ -14,3 +14,7 @@
|
|||||||
setlocal foldmethod=indent
|
setlocal foldmethod=indent
|
||||||
" Set comment string
|
" Set comment string
|
||||||
setlocal commentstring=#%s
|
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}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user