From b0f9112523e552bce1883d70805e9f674d5088fe Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Wed, 9 Aug 2017 13:27:38 -0400 Subject: [PATCH] updated vimrc to have PEP8 python standards by default --- .vimrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 1dae805..4481313 100644 --- a/.vimrc +++ b/.vimrc @@ -17,9 +17,18 @@ runtime! archlinux.vim filetype plugin on syntax on colorscheme SweetCandy -set mouse=a +set mouse=r set cursorline set number set relativenumber set background="dark" +" python PEP 8 standards +set textwidth=79 " lines longer than 79 columns will be broken +set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns +set tabstop=4 " a hard TAB displays as 4 columns +set expandtab " insert spaces when hitting TABS +set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE +set shiftround " round indent to multiple of 'shiftwidth' +set autoindent " align the new line indent with the previous line +