aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin/python.vim
diff options
context:
space:
mode:
authorTeddy Wing2014-05-15 11:49:35 -0400
committerTeddy Wing2014-05-15 11:49:35 -0400
commit88b7702816c1e5ffc09a333d0ee63378979fb9a8 (patch)
treeae5beb00bf8da5da8edbc5b533cb8614feb9dfe2 /ftplugin/python.vim
parent6f28a0a224e71accda4a5d1e11f85b104025fdc2 (diff)
downloaddotvim-88b7702816c1e5ffc09a333d0ee63378979fb9a8.tar.bz2
vimrc: turn on filetype plugin & add python ftplugin
* Ensure filetype plugin is on so that ftplugins get loaded * Add a filetype plugin for python with PEP8 indentation and cancel my custom mappings that preserve indentation on empty lines
Diffstat (limited to 'ftplugin/python.vim')
-rw-r--r--ftplugin/python.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/ftplugin/python.vim b/ftplugin/python.vim
new file mode 100644
index 0000000..5b39a24
--- /dev/null
+++ b/ftplugin/python.vim
@@ -0,0 +1,13 @@
+" Python vim settings
+
+" Indentation
+setlocal expandtab
+setlocal tabstop=4
+setlocal softtabstop=4
+setlocal shiftwidth=4
+
+
+" Don't preserve indentation on empty lines
+inoremap <buffer> <CR> <CR>
+nnoremap <buffer> o o
+nnoremap <buffer> O O