Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

11
12
13
14
15
share|improve this question
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.