From 2636f8575e2857ec89bf11937ce1d4df6ea9f153 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 23 Mar 2021 23:15:00 +0800 Subject: Add more settings for cpp --- after/ftplugin/cpp.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'after/ftplugin/cpp.vim') diff --git a/after/ftplugin/cpp.vim b/after/ftplugin/cpp.vim index 135e477..4d451de 100644 --- a/after/ftplugin/cpp.vim +++ b/after/ftplugin/cpp.vim @@ -1,5 +1,10 @@ set commentstring=//\ %s +set tabstop=2 " number of visual spaces per TAB +set softtabstop=2 " number of spaces in tab when editing +set shiftwidth=2 " number of spaces to use for autoindent +set expandtab " expand tab to spaces so that tabs are spaces + nnoremap :call compile_run_cpp() function! s:compile_run_cpp() abort -- cgit v1.2.3