Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-28 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Mi, 25 Sep 2013, Christian Brabandt wrote: On Mi, 25 Sep 2013, Christian Brabandt wrote: On Wed, September 25, 2013 15:21, Bram Moolenaar wrote: 'cinoptions' is for 'cindent' options. So do we agree, that cino=#N with N being non-zero would

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Di, 24 Sep 2013, Gary Johnson wrote: On 2013-09-24, Christian Brabandt wrote: I guess, the intention is, that in C code the defines need to be in the first column. Thanks for checking that. [...] Vim's behavior looks to me like a mistake in

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Christian Brabandt
On Wed, September 25, 2013 13:18, Bram Moolenaar wrote: Christian Brabandt wrote: On Di, 24 Sep 2013, Gary Johnson wrote: On 2013-09-24, Christian Brabandt wrote: I guess, the intention is, that in C code the defines need to be in the first column. Thanks for checking that.

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: Indeed, it looks strange. Especially, since left shifts are allowed, but once you reach column 1, you can't right shift anymore. Also note, that despite Vim's inability to right shift defines, the file will still be marked modified. Here is a simple patch,

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Ben Fritz
On Wednesday, September 25, 2013 6:18:00 AM UTC-5, Bram Moolenaar wrote: For portability and readability I would encourage keeping the # in the first column. Agree, that makes sense. And thus the default 'cindent' settings should also place it in the first column. Allowing to put it

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Christian Brabandt
On Wed, September 25, 2013 15:21, Bram Moolenaar wrote: 'cinoptions' is for 'cindent' options. So do we agree, that cino=#N with N being non-zero would allow to indent 'defines'? regards, Christian -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Gary Johnson
On 2013-09-25, Ben Fritz wrote: On Wednesday, September 25, 2013 6:18:00 AM UTC-5, Bram Moolenaar wrote: For portability and readability I would encourage keeping the # in the first column. Agree, that makes sense. And thus the default 'cindent' settings should also place it in

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Bram Moolenaar
Gary Johnson wrote: On 2013-09-25, Ben Fritz wrote: On Wednesday, September 25, 2013 6:18:00 AM UTC-5, Bram Moolenaar wrote: For portability and readability I would encourage keeping the # in the first column. Agree, that makes sense. And thus the default 'cindent'

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-25 Fir de Conversatie Christian Brabandt
On Mi, 25 Sep 2013, Christian Brabandt wrote: On Mi, 25 Sep 2013, Christian Brabandt wrote: On Wed, September 25, 2013 15:21, Bram Moolenaar wrote: 'cinoptions' is for 'cindent' options. So do we agree, that cino=#N with N being non-zero would allow to indent 'defines'? No one

'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-24 Fir de Conversatie Gary Johnson
I've discovered that with 'cindent' set and with 'cinkeys' containing 0# as it does by default, the command has no effect on a line having a # in column 1. To demonstrate this, start Vim as vim -N -u NONE and enter this line with the # in column 1: #define this Type and . Note that

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-24 Fir de Conversatie Christian Brabandt
On Di, 24 Sep 2013, Gary Johnson wrote: I've discovered that with 'cindent' set and with 'cinkeys' containing 0# as it does by default, the command has no effect on a line having a # in column 1. To demonstrate this, start Vim as vim -N -u NONE and enter this line with the # in

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-24 Fir de Conversatie Gary Johnson
On 2013-09-24, Christian Brabandt wrote: On Di, 24 Sep 2013, Gary Johnson wrote: I've discovered that with 'cindent' set and with 'cinkeys' containing 0# as it does by default, the command has no effect on a line having a # in column 1. To demonstrate this, start Vim as vim

Re: 'cindent' and 'cinkeys' with 0# inhibits of lines with # in column 1

2013-09-24 Fir de Conversatie Christian Brabandt
On Di, 24 Sep 2013, Gary Johnson wrote: On 2013-09-24, Christian Brabandt wrote: I guess, the intention is, that in C code the defines need to be in the first column. Thanks for checking that. [...] Vim's behavior looks to me like a mistake in someone's understanding of C. I