vim-erlang / vim-erlang-runtime

Erlang indentation and syntax for Vim
https://vim-erlang.github.io
101 stars 29 forks source link

Use 'shiftwidth()' instead of '&shiftwidth' #37

Closed tyru closed 7 years ago

tyru commented 7 years ago

Dear vim-erlang developers,

Recently, I sent a patch to vim_dev, Vim developer mailing list. But I was transferred to send a patch to you.



shiftwidth(), introduced in Vim 7.4.694, should be used instead of direct reference to '&shiftwidth' option value. 'set sw=0' makes Vim behave like 'set sw={tabstop option value}' (:help shiftwidth()).

But currently this feature does not work on your indent plugins due to the direct reference '&shiftwidth'.

And I guess you are the maintainer of the following indent plugins:

I would be glad if you merge this pull request, And then, would you like to send the latest plugins to Bram?

hcs42 commented 7 years ago

Thanks, will do soon.

tyru commented 7 years ago

Thanks!

hcs42 commented 7 years ago

Email sent to Bram :)

tyru commented 7 years ago

:)