Closed jbodah closed 7 years ago
Josh Bodah wrote:
I maintain the vim-elixir repo and got an issue coming in about problems regarding indent keys:
- vim-elixir issue: https://github.com/elixir-editors/vim-elixir/issues/370
- Relevant vim config: https://github.com/elixir-editors/vim-elixir/blob/master/indent/elixir.vim#L8
The reporters noticed that some of the
indentkeys
directives (in particular0=end
) were not being respected in HEAD vim. I did a binary search on vim versions and noticed that the8.0.1041
patch introduced the issue.Repro steps:
- Install vim-elixir
- Type the following:
def hello do :hello end
- If
end
deindents on typing thed
(based on the0=end
directive) then it works properly. Otherwise then it is not working as expected
Christian made this change.
-- hundred-and-one symptoms of being an internet addict:
You get a tuner card so you can watch TV while surfing.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\ \\ an exciting new programming language -- http://www.Zimbu.org /// \\ help me help AIDS victims -- http://ICCF-Holland.org ///
On Mo, 18 Sep 2017, Bram Moolenaar wrote:
Josh Bodah wrote:
I maintain the vim-elixir repo and got an issue coming in about problems regarding indent keys:
- vim-elixir issue: https://github.com/elixir-editors/vim-elixir/issues/370
- Relevant vim config: https://github.com/elixir-editors/vim-elixir/blob/master/indent/elixir.vim#L8
The reporters noticed that some of the
indentkeys
directives (in particular0=end
) were not being respected in HEAD vim. I did a binary search on vim versions and noticed that the8.0.1041
patch introduced the issue.Repro steps:
- Install vim-elixir
- Type the following:
def hello do :hello end
- If
end
deindents on typing thed
(based on the0=end
directive) then it works properly. Otherwise then it is not working as expectedChristian made this change.
I'll have a look
Christian -- Unwissende werfen Fragen auf, welche von Wissenden vor tausend Jahren schon beantwortet sind. -- Goethe, Maximen und Reflektionen, Nr. 968
I checked it out and it seems to work properly. Please give a reproducible example that break (preferably without installing any additional plugins). So I installed vim-elixir as package below ~/.vim/pack/dist/opt and did vim --clean --cmd 'packadd vim-elixir' foobar.ex
The I entered your mentioned steps:
def hello do
:hello
end
and it does de-indent on typing the d of the end
. This is with vim 8.0.1144.
This was recently patched in https://github.com/elixir-editors/vim-elixir/pull/372; I'll see if I can come up with a more minimal example
okay thanks
not needed anymore. duplicate of #2151 posted a patch at the vim-dev list
Good to know. Thanks for looking into this
fixed by 1b38344
I maintain the vim-elixir repo and got an issue coming in about problems regarding indent keys:
The reporters noticed that some of the
indentkeys
directives (in particular0=end
) were not being respected in HEAD vim. I did a binary search on vim versions and noticed that the8.0.1041
patch introduced the issue.Repro steps:
end
deindents on typing thed
(based on the0=end
directive) then it works properly. Otherwise then it is not working as expected