vim-detailed
vim-detailed copied to clipboard
fix broken indent with recent vim-ruby
Without this fix, I get the following indent:
def foo
puts "bar: #{baz}"
puts
end
I just tried this and don't get that indent problem. Is your ruby-vim code up to date?
@wwalker - yes, I still need the workaround with vim-ruby https://github.com/vim-ruby/vim-ruby/commit/01657cc9d9fc93590104af0f5aaa6897caa4af11
I'm still getting this - it's the ':' that triggers the error (without it, it indents properly). I've updated all bundles to master (ruby, rails, etc.).
I've reproduced the issue in a docker container with just the following:
$ ls -1 ~/.vim/bundle/
vim-detailed
vim-pathogen
vim-ruby
$ cat ~/.vimrc
set nocompatible
filetype off
execute pathogen#infect()
syntax enable
filetype plugin on
filetype plugin indent on
set t_Co=16
colorscheme detailed
Here's a minimal failing example:
":#"
":#"
(the second line keeps getting indented without this patch)