diff --git a/init.vim b/init.vim index d9fd221..44c2dfb 100644 --- a/init.vim +++ b/init.vim @@ -57,6 +57,17 @@ imap :vsplit . map :split . imap :split . +" ========================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 :wa imap :wa