From 39196d0d36ecc904e02369b261636fea3a0c6c38 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 22 Feb 2017 15:08:16 +0100 Subject: 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. --- ftplugin/ruby.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ftplugin/ruby.vim') 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 +nnoremap o o +nnoremap O O -- cgit v1.2.3