Re: [patch] Add bzl filetype with syntax, ftplugin, and indent

2015-09-08 Fir de Conversatie 'David Barnett' via vim_dev
Is this still getting merged soon? I saw a few updates in vim in the last few weeks but haven't seen this patch land yet. David On Wed, Aug 12, 2015 at 1:04 PM, Bram Moolenaar wrote: > > David Barnett wrote: > > > I've attached a patch to add a "bzl" filetype into vim, with syntax > > highlight

[Patch] Detect .bash_aliases file as "sh" filetype

2014-12-03 Fir de Conversatie 'David Barnett' via vim_dev
I've included a patch below to apply the "sh" filetype for files called .bash_aliases*. (I'm not exactly sure what the "*" is for, but I followed suit from .bash_profile and .bash_logout.) Could you merge this patch into vim? diff -r 4604a182f04c runtime/filetype.vim --- a/runtime/filetype.vim Su

Re: [Patch] Add go filetype with syntax

2014-08-24 Fir de Conversatie 'David Barnett' via vim_dev
I can verify that works for "godoc strings". After patching scripts.vim, I did: vim <(godoc strings) :verbose set ft? filetype=godoc Last set from /usr/share/vim/vim74/scripts.vim David On Sun, Aug 24, 2014 at 12:40 PM, Bram Moolenaar wrote: > > David Barnett wrote: > > > Her

Re: [Patch] Add go filetype with syntax

2014-08-24 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
Here's the first 10 lines of "godoc strings": PACKAGE DOCUMENTATION package strings import "strings" Package strings implements simple functions to manipulate strings. FUNCTIONS func Contains(s, substr string) bool David On Sun, Aug 24, 2014 at 5:27 AM, Bram Moolenaar wrote: > >

Re: [Patch] Add go filetype with syntax

2014-08-22 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
Oh, I see, it's manually set by commands like :GoDoc in https://github.com/fatih/vim-go/blob/master/ftplugin/go/godoc.vim. Might be able to recognize it looking for a header like "PACKAGE DOCUMENTATION", but probably would have made more sense to just distribute it along with the commands that use

Re: [Patch] Add go filetype with syntax

2014-08-22 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
On Fri, Aug 22, 2014 at 10:41 AM, Tony Mechelynck < antoine.mechely...@gmail.com> wrote: > If there's no "quick" ftdetect rule (by the filename), there might be a > "slow" ftdetect rule (by the file contents). > I meant quick in terms of effort to set up, actually. I'd rather drop any contentious

Re: [Patch] Add go filetype with syntax

2014-08-22 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
+dsymonds Good question. I can't tell if there are actual "godoc files" or just cli output from the godoc tool is sometimes passed to a vim buffer. I wouldn't mind keeping that file out for a later patch if there's no quick ftdetect rule. I don't like defining new filetypes without at least confi

Re: [patch] Add vroom filetype with syntax

2014-07-24 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
I haven't seen this change in the repository yet. Is it still in the queue? David On Sat, Jul 12, 2014 at 8:52 AM, Bram Moolenaar wrote: > > David Barnett wrote: > > > I've attached a patch to add a "vroom" filetype into vim, with syntax > > highlighting and filetype configuration. Could you i

Re: [patch] Separate filetype for JSON

2014-07-15 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
Agreed. I'd prefer to have full-fledged JSON support, but I'd also like to get the filetype fixed ASAP. I went with a relatively minimal change for now that's less likely to be controversial. Has anyone contacted elzr or authors of any other plugins to see if they want to merge their plugin into v

Re: Patch for vim text filetype ('com' and 'cms' settings, README ftdetect)

2014-07-08 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
(Forgot the attachment) David On Tue, Jul 8, 2014 at 12:31 PM, David Barnett wrote: > Hi, > > Could you integrate the attached patch (or some variation) into vim, under > the vim license? > > It includes: > >- A change to the ftdetect rule to consider files named "README" as >text. >

Patch for vim text filetype ('com' and 'cms' settings, README ftdetect)

2014-07-08 Fir de Conversatie &#x27;David Barnett&#x27; via vim_dev
Hi, Could you integrate the attached patch (or some variation) into vim, under the vim license? It includes: - A change to the ftdetect rule to consider files named "README" as text. - An ftplugin to override 'comments' and 'commentstring' for text files, since the default is not at all