I want some text appears whenever I create a new buffer with a certain file extension.

This page summarizes the projects mentioned and recommended in the original post on /r/vim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • vim-skeleton

    Initialize new Vim buffers with file-type-specific templates

  • I use the vim-skeleton plugin for this.

  • vim-snippets

    vim-snipmate default snippets (Previously snipmate-snippets)

  • The plugin https://github.com/honza/vim-snippets has main templates for several languages, though without the #include in your example. They also place your cursor inside the function, rather than leaving a comment there.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • mu-template

    Vim template-files expander

  • I'm maintaining mu-template. There exist many more plugins on the subject -- I remember a non exhaustive list on vim.wikia, now "fandom". Other people prefer pure snippets solutions where they manually request the expansion of the skeleton they wish to use.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts