diff options
| author | Teddy Wing | 2017-02-22 15:08:16 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2017-02-22 15:12:20 +0100 | 
| commit | 39196d0d36ecc904e02369b261636fea3a0c6c38 (patch) | |
| tree | 496b8f9b3a0c2f59371968591b4163c2af7fa513 | |
| parent | d12d69fcd391eb4abe80f1d5703696859e668db5 (diff) | |
| download | dotvim-39196d0d36ecc904e02369b261636fea3a0c6c38.tar.bz2 | |
ftplugin/ruby.vim: Don't preserve indentation on empty lines
My tastes have changed over time. These days I normally prefer to remove
indentation on empty lines, and this is my general default working on
codebases with other people. Change our Ruby config to remove
indentation on empty lines so I don't have to keep doing it myself
manually.
| -rw-r--r-- | ftplugin/ruby.vim | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index af1770c..6521815 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -5,3 +5,9 @@ setlocal expandtab  setlocal tabstop=2  setlocal softtabstop=2  setlocal shiftwidth=2 + + +" Don't preserve indentation on empty lines +inoremap <buffer> <CR> <CR> +nnoremap <buffer> o o +nnoremap <buffer> O O | 
