256 Kilobytes

Answers in Administration and Operations | By Some Guy


537 views, 0 RAMs, and 1 comment

Tags: Vim, Text Editors, Hotkeys

Profile Photo - Some GuySome GuyBasic Subscriber

Is there a way to insert incrementing numbers in Vim vertically? For example, if you have this:


.table.directory.lo_uc.cols_4 > .row > .col:nth-child(0) { width:03%; text-align: center; }

.table.directory.lo_uc.cols_4 > .row > .col:nth-child(0) { width:46%; }

.table.directory.lo_uc.cols_4 > .row > .col:nth-child(0) { width:41%; }

.table.directory.lo_uc.cols_4 > .row > .col:nth-child(0) { width:10%; }


And want to replace the 0s to this:


.table.directory.lo_uc.cols_4 > .row > .col:nth-child(1) { width:03%; text-align: center; }

.table.directory.lo_uc.cols_4 > .row > .col:nth-child(2) { width:46%; }

.table.directory.lo_uc.cols_4 > .row > .col:nth-child(3) { width:41%; }

.table.directory.lo_uc.cols_4 > .row > .col:nth-child(4) { width:10%; }


Pls halp.

Download more RAM. 🐏 ⨉ 0Posted by Some Guy 2 years ago 🕓 Posted at 02 December, 2018 03:43 AM PST

This is a debug account.

Profile Photo - August R. GarciaAugust R. GarciaLARPing as a Sysadmi...Portland, ORSite Owner

A solution was posted on the Vim Wiki:

1. Hover over top number

2. Ctrl+V (start vertical select)

3. Highlight vertically over all numbers

4. Ctrl+G

5. Ctrl+A

"With the cursor on the first 0 in the first line, start a blockwise select by pressing Ctrl-V (or Ctrl-Q if you use Ctrl-V for pasting). Move the cursor down to select the first column of zeros, then press g Ctrl-A."


Download more RAM. 🐏 ⨉ 0Posted by August R. Garcia 2 years ago 🕓 Posted at 02 December, 2018 03:47 AM PST

Sir, I can do you a nice SEO.

Post a New Comment

Do you like having a good time?

Register an Account

You can also login to an existing account or reset your password. All use of this site is subject to the terms of service and privacy policy.

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account

Answers— Read More

Find more related content below!