aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin/cpp.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-11-27 23:55:18 +0800
committerjdhao <jdhao@hotmail.com>2020-11-27 23:55:18 +0800
commite79f55fd9bf0e6d0e2ff03d95e05d8f23ceea213 (patch)
tree1517353b26dc4196dbaa4b7fa961029090352ef2 /after/ftplugin/cpp.vim
parent42751cb1dd9cff3090a7552926eb8871e83e3c14 (diff)
update commentstring for cpp
Diffstat (limited to 'after/ftplugin/cpp.vim')
-rw-r--r--after/ftplugin/cpp.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/after/ftplugin/cpp.vim b/after/ftplugin/cpp.vim
index 4dd59bc..135e477 100644
--- a/after/ftplugin/cpp.vim
+++ b/after/ftplugin/cpp.vim
@@ -1,3 +1,5 @@
+set commentstring=//\ %s
+
nnoremap <silent> <buffer> <F9> :call <SID>compile_run_cpp()<CR>
function! s:compile_run_cpp() abort