1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Add more settings for cpp

This commit is contained in:
jdhao
2021-03-23 23:15:00 +08:00
parent b18a643145
commit 2636f8575e
2 changed files with 6 additions and 0 deletions

View File

@@ -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