Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 770515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:30:44+00:00 2026-05-14T18:30:44+00:00

I’m currently trying to switch from Coda (a Mac IDE) to Vim. One thing

  • 0

I’m currently trying to switch from Coda (a Mac IDE) to Vim. One thing I loved about Coda and my knowledge of Vim cannot replace were the so-called “clips”. Basically, you type, say, “new”, press TAB, and the text is replaced with a basic XHTML page. And you can add as many keyword/clips combinations as you want.

The most I could get with Vim so far was to create a new file containing my clip, and then use :r FILE in Vim in order to get it inserted, but this is not a very elegant solution, as I’d have to carry these clips around in every directory I have a file I want to use my clips with.

So assuming I’ve explained things properly, what would be my choices?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:30:45+00:00Added an answer on May 14, 2026 at 6:30 pm

    For various editors, there’s a functionality called ”’snippets”’ which tab expands the beginnings of common text (like a HTML div, or C function definition) into a skeleton for that code.

    There’s a couple vim plugins that present this functionality. Two off the top of my bookmark list:

    • snippetsEmu
    • snipMate

    I heard of another plugin for quick HTML editing that uses snippets recently:

    • zencoding

    Check those out and see if they’re near what you’re looking for.


    Also, you can define a default BufNewFile action in vim – which lets you read in a skeleton for a file if it doesn’t already exist automatically.

                                                    *skeleton* *template*
    To read a skeleton (template) file when opening a new file: >
    
      :autocmd BufNewFile  *.c      0r ~/vim/skeleton.c
      :autocmd BufNewFile  *.h      0r ~/vim/skeleton.h
      :autocmd BufNewFile  *.java   0r ~/vim/skeleton.java
    

    Put those (or the equivalent) in your .vimrc (w/o the leading colon) to have them set up automatically every time you run vim.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.