From e221c239dd30a9c3dfeae508f33cb225f2d85fbb Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sat, 22 Dec 2018 18:15:32 +0100 Subject: [PATCH] Added codestyle options --- init.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) 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