From: Colin Patrick McCabe Date: Fri, 28 Jan 2011 11:59:52 +0000 (-0800) Subject: python.vim: simple settings X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf5f8a948f8147f79886814acfba5358eeaa2d0;p=cmccabe-etc python.vim: simple settings Signed-off-by: Colin McCabe --- diff --git a/.vim/ftdetect/python.vim b/.vim/ftdetect/python.vim new file mode 100644 index 0000000..fdf39d0 --- /dev/null +++ b/.vim/ftdetect/python.vim @@ -0,0 +1,2 @@ +" Python +au BufNewFile,BufRead *.py set filetype=python diff --git a/.vim/indent/python.vim b/.vim/indent/python.vim new file mode 100644 index 0000000..b9b42d7 --- /dev/null +++ b/.vim/indent/python.vim @@ -0,0 +1,13 @@ +" Python indent file + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 + +setlocal expandtab +setlocal sw=4 +setlocal ts=4 +setlocal tw=79 +setlocal ai