Added codestyle options

This commit is contained in:
Oliver Hartmann 2018-12-22 18:15:32 +01:00
parent 5b31e85e6a
commit e221c239dd

View File

@ -57,6 +57,17 @@ imap <C-F2> <Esc>:vsplit .<CR>
map <S-F2> <Esc>:split .<CR> map <S-F2> <Esc>:split .<CR>
imap <S-F2> <Esc>:split .<CR> imap <S-F2> <Esc>:split .<CR>
" ========================Codestyle========================
set tabstop=2 " Size of a tab
set shiftwidth=2 " Die Einrückung
set expandtab "Tabs get spaces when inserting
set softtabstop=0
"set autoindent
"alignment ansi style (astyle)
set cindent " C-Code Style / Automatische Einrückung
set cinoptions=(0,u0,U0,:0,=0 "Einrückung wie bei astyle: :0 (switch), =0 (case), (0 (unclosed parentheses),
set modeline "Read indent comments (at end of file)
" ======================shortcut======================= " ======================shortcut=======================
map <C-S> <ESC>:wa<CR> map <C-S> <ESC>:wa<CR>
imap <C-S> <ESC>:wa<CR> imap <C-S> <ESC>:wa<CR>