dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0ec0ce613e46d17e064a768107d37398a2b9bdbf
parent 128a508629ce63e08be94bb32932f7fd3f7f4481
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date:   Sun, 18 Nov 2012 21:41:02 +0100

Added Python indent rules

Diffstat:
M.vimrc | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/.vimrc b/.vimrc @@ -13,9 +13,6 @@ filetype plugin on " program to always generate a file-name. set grepprg=grep\ -nH\ $* -" OPTIONAL: This enables automatic indentation as you type. -filetype indent on - " OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to " 'plaintex' instead of 'tex', which results in vim-latex not being loaded. " The following changes the default filetype back to 'tex': @@ -47,6 +44,9 @@ map <F8> :tabe " Select non-default syntax colorscheme. Found in /usr/share/vim/vim72/colors/ colorscheme desert +" adjust colors for better contrast +set background=dark + set backspace=indent,eol,start " note that the following rval is made by hitting ctrl-v and then backspace... " " this remaps backspace to actualy BACKSPACE - not delete. @@ -78,3 +78,9 @@ autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino autocmd! BufNewFile,BufRead *.cuh setlocal ft=cuda +" Google Python style guide +set tabstop=8 " a tab is 4 characters wide +set expandtab " convert tab char to spaces +set softtabstop=4 " makes the tab key indent by four spaces +set shiftwidth=4 " width for autoindents +filetype indent on " automatic indent