vim-detailed icon indicating copy to clipboard operation
vim-detailed copied to clipboard

fix broken indent with recent vim-ruby

Open e2 opened this issue 10 years ago • 4 comments

Without this fix, I get the following indent:

def foo
  puts "bar: #{baz}"
    puts
end

e2 avatar Jan 06 '15 02:01 e2

I just tried this and don't get that indent problem. Is your ruby-vim code up to date?

wwalker avatar Feb 23 '15 19:02 wwalker

@wwalker - yes, I still need the workaround with vim-ruby https://github.com/vim-ruby/vim-ruby/commit/01657cc9d9fc93590104af0f5aaa6897caa4af11

e2 avatar Feb 23 '15 22:02 e2

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

e2 avatar Jul 08 '15 08:07 e2

Here's a minimal failing example:

":#"
  ":#"

(the second line keeps getting indented without this patch)

e2 avatar Jul 08 '15 09:07 e2