From 1580137f32a065463602edc92ba78696c0e2bf9f Mon Sep 17 00:00:00 2001 From: Siew Yi Liang Date: Fri, 29 Jan 2016 17:45:12 -0500 Subject: [PATCH] updated personal configs --- my_configs.vim | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/my_configs.vim b/my_configs.vim index e7a98c39..7782c9f4 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -1,5 +1,26 @@ +" Basic formatting settings set listchars=tab:»·,trail:· set list +" Turn on line numbering set number syntax on -colorscheme monokai \ No newline at end of file +colorscheme monokai + +" Enable folding +set foldmethod=indent +set foldlevel=99 + +" Adds proper PEP-8 settings for Python files +au BufNewFile,BufRead *.py + \ set tabstop=4 + \ set softtabstop=4 + \ set shiftwidth=4 + \ set textwidth=79 + \ set expandtab + \ set autoindent + \ set fileformat=unix + +au BufNewFile,BufRead *.js, *.html, *.css + \ set tabstop=2 + \ set softtabstop=2 + \ set shiftwidth=2