LucHermitte / lh-cpp

C&C++ ftplugins suite for Vim
Other
130 stars 10 forks source link

Setting g:c_nl_before_curlyB doesn't seem to take effect. #1

Closed troycurtisjr closed 8 years ago

troycurtisjr commented 8 years ago

I've been trying out your extensive plugin, but notice that no matter what value I set 'g:c_nl_before_curlyB' to, or where I put the setting, I always get:

if () { }

instead of my desired: if () { }

Thanks!

LucHermitte commented 8 years ago

These options have been deprecated in favour of :AddStyle You'll have to use it either from

And I'll have to update the documentation. BTW, I see a bug in lh-dev :AddStyle, priority isn't updated if it has been forgotten the first time.

troycurtisjr commented 8 years ago

Ah! Excellent. I'll give it a go. Don't remember seeing that anywhere, but then again looking at your plugin made me think that maybe I don't actually know vim script after all. ;)

On Mon, Dec 14, 2015, 03:31 Luc Hermitte notifications@github.com wrote:

These options have been deprecated in favour of :AddStyle https://github.com/LucHermitte/lh-dev#formatting-of-brackets-characters You'll have to use it either from an after c or c++ ftplugin, or from a local_vimrc https://github.com/LucHermitte/local_vimrc

-> :AddStyle { -b \n{\n -prio=10 -ft=c

And I'll have to update the documentation. BTW, I see a bug in lh-dev :AddStyle, priority isn't updated if it has been forgotten the first time.

— Reply to this email directly or view it on GitHub https://github.com/LucHermitte/lh-cpp/issues/1#issuecomment-164388739.

LucHermitte commented 8 years ago

It'll be hard to remember seeing that somewhere: