diff options
-rw-r--r-- | ftplugin/python.vim | 13 | ||||
-rw-r--r-- | vimrc | 9 |
2 files changed, 22 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 @@ -127,6 +127,12 @@ " 2014.05.14: " * Add commentary.vim definition for the "htmldjango" filetype " +" 2014.05.15: +" * Turn on filetype plugin so that I can have filetype-specific +" settings in their own files instead of having them clutter my vimrc +" * Add a filetype plugin file for python, specifying PEP8 indentation +" and ensuring indentation is not preserved on blank lines. +" " Pathogen @@ -178,6 +184,9 @@ set backupdir=~/.vim/backup/backup// set directory=~/.vim/backup/swap// set undodir=~/.vim/backup/undo// +" Enable filetype-specific settings +filetype plugin on + set laststatus=2 " Always show the status line " Statusline |