Skip to content

fix broken indent with recent vim-ruby - #23

Open
e2 wants to merge 1 commit into
rking:masterfrom
e2:interpolation_indent_workaround
Open

fix broken indent with recent vim-ruby#23
e2 wants to merge 1 commit into
rking:masterfrom
e2:interpolation_indent_workaround

Conversation

@e2

@e2 e2 commented Jan 6, 2015

Copy link
Copy Markdown

Without this fix, I get the following indent:

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

@wwalker

wwalker commented Feb 23, 2015

Copy link
Copy Markdown

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

@e2

e2 commented Feb 23, 2015

Copy link
Copy Markdown
Author

@wwalker - yes, I still need the workaround with vim-ruby vim-ruby/vim-ruby@01657cc

@e2

e2 commented Jul 8, 2015

Copy link
Copy Markdown
Author

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

e2 commented Jul 8, 2015

Copy link
Copy Markdown
Author

Here's a minimal failing example:

":#"
  ":#"

(the second line keeps getting indented without this patch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants