Added codestyle options
This commit is contained in:
parent
5b31e85e6a
commit
e221c239dd
11
init.vim
11
init.vim
@ -57,6 +57,17 @@ imap <C-F2> <Esc>:vsplit .<CR>
|
||||
map <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=======================
|
||||
map <C-S> <ESC>:wa<CR>
|
||||
imap <C-S> <ESC>:wa<CR>
|
||||
|
Loading…
x
Reference in New Issue
Block a user