Add C inline comment surround mapping

This commit is contained in:
Kenneth Benzie 2017-03-27 12:40:54 +01:00
parent 13acc08b4f
commit 12755c630b
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,8 @@ setlocal textwidth=0
nnoremap K :YcmCompleter GetDoc<CR>
" "ys{motion}t" turns "word" -> "TODO(word):"
let b:surround_{char2nr("t")} = "TODO(\r):"
" "ys{motion}/" turns "text" into "/*text*/"
let b:surround_{char2nr("/")} = "/*\r*/"
" Map K to get YouCompleteMe documentation
nnoremap K :YcmCompleter GetDoc<CR>
" DoxygenToolkit

View File

@ -1 +1,3 @@
setlocal commentstring=//%s
" "ys{motion}/" turns "text" into "/*text*/"
let b:surround_{char2nr("/")} = "/*\r*/"