From bcd7877df006869198eea1625920b56af1dce097 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 28 Oct 2016 10:36:11 +0900 Subject: [PATCH] Add TODO surround mapping for C/C++ --- after/ftplugin/c.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/after/ftplugin/c.vim b/after/ftplugin/c.vim index 8d50009..2e691ec 100644 --- a/after/ftplugin/c.vim +++ b/after/ftplugin/c.vim @@ -8,3 +8,5 @@ setlocal commentstring=//%s setlocal textwidth=0 " Map K to get YouCompleteMe documentation nnoremap K :YcmCompleter GetDoc +" "ys{motion}t" turns "word" -> "TODO(word):" +let b:surround_{char2nr("t")} = "TODO(\r):"