Re: Vim and spec template

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 19 Jul 2019 at 05:09, Zdenek Dohnal <zdohnal@xxxxxxxxxx> wrote:
>
>
> On 7/18/19 9:47 PM, Jason L Tibbitts III wrote:
> >>>>>> "ZD" == Zdenek Dohnal <zdohnal@xxxxxxxxxx> writes:
> > ZD> Hi all, I would like to ask as Vim co-maintainer, do you find useful
> > ZD> for Vim to do:
> >
> > ZD> - when you open new file with .spec suffix, Vim will get you basic
> > ZD> spec file structure?
> >
> > Personally I have always found that behavior annoying.  If I open a new
> > file, I expect that the file would be empty.  If I want a template, I
> > can copy one.  Editing a new HTML file doesn't bring up a template for
> > HTML files, for example.
> >
> > The spec template used isn't something I ever want anyway.  It uses tabs
> > instead of spaces and uses them in a way that implies that indentation
> > is somehow required.
> Converted to spaces now.
> >   And it includes a default release tag of
> > "0%{?dist}" which isn't permitted by the packaging guidelines.
> Expected. It is designed for user to run rpmdev-bumpspec <package>.spec,
> so the tool will supply correct format of changelog entry and increment
> the release.

Why would you use rpmdev-bumpspec for a file created in vim when you
can use <leader>c in vim directly?

> > (Releases start at one except when packaging prerelease software, and are
> > never exactly zero.)
> >
> > Best to leave it to the packager to choose their own template, or to
> > allow somehow who wants templating behavior to configure templating in a
> > general way.
> >
> >  - J<
>
> --
> Zdenek Dohnal
> Software Engineer
> Red Hat Czech - Brno TPB-C
>
>
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx



-- 
Elliott
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux