Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to insert a range of numbers in Sublime Text 2? I have been unable to find a command or plugin, and I have to insert sequences like this semi-frequently. I'm looking for something akin to :put =range(11,15) in Vim, which would print

share|improve this question

The Text Pastry package support the syntax from 'Insert Nums', but adds extra features, such as inserting a sequence of words and presets for 1-indexed and 0-indexed number generators.

share|improve this answer
Also works in sublime text 3 – Michael Irey May 29 '14 at 17:29
up vote 3 down vote accepted

I found a package (in the package manager) called "Insert Nums." Select all the regions into which you wish to place numbers, run the command (CTRL-OPT-n on my Mac CTRL-Alt-n for Win/*NIX) and you'll be able to insert numbers. The package allows you to specify the start, step, and number padding.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .