[OT] vim tip with column limits

2017-10-08 Thread Jonathan M Davis via Digitalmars-d
I've wanted this for ages and just figured out how to do it, so I figured that I'd share for those vim users who care. The :set cc=x command lets you put a vertical line in vim (cc standing for colorcolumn). e.g. if there's a line limit of 80 characters, if you do :set cc=81, then there will be a

Re: [OT] vim tip with column limits

2017-10-08 Thread Anonymouse via Digitalmars-d
On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis wrote: However, I just went digging around again to see if I could find an alternate solution, and I've now figured out that while there is only one cc you can set, you can actually give it multiple values. e.g. :set cc=81,121 will giv

Re: [OT] vim tip with column limits

2017-10-08 Thread lobo via Digitalmars-d
On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis wrote: I've wanted this for ages and just figured out how to do it, so I figured that I'd share for those vim users who care. [...] This presentation gave me a few vim ideas, you might also like it. https://www.youtube.com/watch?v=a

Re: [OT] vim tip with column limits

2017-10-08 Thread Steven Schveighoffer via Digitalmars-d
On 10/8/17 8:24 PM, Jonathan M Davis wrote: I've wanted this for ages and just figured out how to do it, so I figured that I'd share for those vim users who care. The :set cc=x command lets you put a vertical line in vim (cc standing for colorcolumn). e.g. if there's a line limit of 80 character

Re: [OT] vim tip with column limits

2017-10-08 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 09, 2017 02:03:16 lobo via Digitalmars-d wrote: > On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis wrote: > > I've wanted this for ages and just figured out how to do it, so > > I figured that I'd share for those vim users who care. > > > > [...] > > This presentation

Re: [OT] vim tip with column limits

2017-10-09 Thread Anton Pastukhov via Digitalmars-d
On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis wrote: I've wanted this for ages and just figured out how to do it, so I figured that I'd share for those vim users who care. https://github.com/nathanaelkane/vim-indent-guides allows to have two or more lines of different colors.

Re: [OT] vim tip with column limits

2017-10-09 Thread mark_mcs via Digitalmars-d
On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis wrote: It would be nice if I could give the lines different colors (it does look like it's possible to change the colors of the lines but not individually), but it's already fantastic that there's a way to have multiple at all - partic

Re: [OT] vim tip with column limits

2017-10-09 Thread lithium iodate via Digitalmars-d
On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis wrote: […] Thanks for the tip!

Re: [OT] vim tip with column limits

2017-10-11 Thread Eduard Staniloiu via Digitalmars-d
On Monday, 9 October 2017 at 13:38:18 UTC, lithium iodate wrote: On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis wrote: […] Thanks for the tip! You might also want to use automatic word wrapping [0] for 120 chars. Cheers, Eduard [0] - http://vim.wikia.com/wiki/Automatic_word_

Re: [OT] vim tip with column limits

2017-10-11 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 11, 2017 07:59:51 Eduard Staniloiu via Digitalmars-d wrote: > On Monday, 9 October 2017 at 13:38:18 UTC, lithium iodate wrote: > > On Monday, 9 October 2017 at 00:24:02 UTC, Jonathan M Davis > > > > wrote: > >>[…] > >> > > Thanks for the tip! > > You might also want to use au