python.vim: simple settings
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 28 Jan 2011 11:59:52 +0000 (03:59 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 28 Jan 2011 12:01:17 +0000 (04:01 -0800)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

.vim/ftdetect/python.vim [new file with mode: 0644]
.vim/indent/python.vim [new file with mode: 0644]

diff --git a/.vim/ftdetect/python.vim b/.vim/ftdetect/python.vim
new file mode 100644 (file)
index 0000000..fdf39d0
--- /dev/null
@@ -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 (file)
index 0000000..b9b42d7
--- /dev/null
@@ -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