diff options
| -rw-r--r-- | after/ftplugin/cpp.vim | 5 | ||||
| -rw-r--r-- | core/plugins.vim | 1 |
2 files changed, 6 insertions, 0 deletions
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 <silent> <buffer> <F9> :call <SID>compile_run_cpp()<CR> function! s:compile_run_cpp() abort diff --git a/core/plugins.vim b/core/plugins.vim index b8b1427..6d87205 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -675,6 +675,7 @@ let g:XkbSwitchEnabled = 1 " linters for different filetypes let g:ale_linters = { \ 'vim': ['vint'], + \ 'cpp': ['cppcheck'], \ } " Only run linters in the g:ale_linters dictionary |
