On 22/08/14 18:34, 'David Barnett' via vim_dev wrote:
+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 configuring comments, commentstring, and formatoptions anyway.
David
If the syntax script is correct, there's no harm in leaving it in in
order to allow setting 'syntax' (and/or 'filetype') manually.
If there's no "quick" ftdetect rule (by the filename), there might be a
"slow" ftdetect rule (by the file contents).
Not setting some options mean you get the vimrc global default if any,
or failing that, the Vim default (or the Vi default if 'compatible' is
set). For instance for HTML I get fo=tq which is set by :setglobal in my
~/.vimrc, but for XML I get fo=croql which is set by :setlocal in the
XML ftplugin.
It may be desirable to rely on those defaults: for instance there are no
specific 'formatoptions' for the "text" filetype, and my vimrc setting
is used.
On Fri, Aug 22, 2014 at 8:42 AM, Bram Moolenaar <[email protected]
<mailto:[email protected]>> wrote:
David Barnett wrote:
> I've attached a patch to add a "go" filetype to vim, with syntax
> highlighting and filetype configuration. I also updated the
> vim-ft-vroom repo URL to point to the renamed repo while I'm at it
> ("vim-ft.vroom"->"vim-ft-vroom").
>
> These files originally came from the golang repository and are
> currently maintained at https://github.com/google/vim-ft-go. The
files
> are under a BSD license there, but I've obtained approval from Google
> to include them in vim under the Vim license.
I know that a Go file ends in .go. You also included a godoc syntax
file, how do we recognize a godoc file?
--
Microsoft is to software what McDonalds is to gourmet cooking
/// Bram Moolenaar -- [email protected] --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org
///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///
Best regards,
Tony.
--
I have a very good DENTAL PLAN. Thank you.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.