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 3234334
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:22:45+00:00 2026-05-17T17:22:45+00:00

I am editing a large text array in vim, and I want to compute

  • 0

I am editing a large text array in vim, and I want to compute on one sub-column of it.

Simplified example of edited file:

name value name   saturation 
red  5     green  2
blue 7     yellow 7 
other text

I want to pipe column 4 through an external program calc.pl,
calc.pl replaces numbers with new numbers in the input, for example:

 name value name   saturation
 red  5     green  2.4
 blue 7     yellow 7.14
 other text

When I select rectangle in column 4, using v.motion, and !perl calc.pl
the whole lines gets piped to calc.pl, not just the rectangle.

A work around would be to: cut rectangle to temp file,
run calc.pl on temp file, and then read output as rectangle.

Is there a straight forward solution in vim, without having
to cut/shell/paste?

  • 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-17T17:22:46+00:00Added an answer on May 17, 2026 at 5:22 pm

    You might try the vis plugin by Charles Campbell

    Use ctrl-v to select a column, then apply an external filter to that column. ctrl-v ..move.. :B !sort

    Another plugin that might work for you is NrrwRgn by Christian Brabandt.

    Use :NarrowRegion to narrow a line based selection or alternatively visually select a range and press nr

    In the scratch buffer simply save it and the changes will be copied into the original file.
    This is only a very simple help. You should probably read the help, that is provided with the plugin. See :h NarrowRegion

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

Sidebar

Related Questions

What software is recommended for working with and editing large XML schemas? I'm looking
While editing an aspx file I found both these opening tags used for seemingly
When editing an XML file in IntelliJ IDEA, if the document references a schema,
Often while editing config files, I'll open one with vi and then when I
I have a large exiting C++ project involving: 4 applications 50+ libraries 20+ third
When editing XAML in VS2008 SP1, the editor is really slow. devenv process seems
When editing HTML in emacs, is there a way to automatically pretty-format a blob
Sometimes when I'm editing page or control the .designer files stop being updated with
Graphics and audio editing and processing software often contain functions called High-Pass Filter and
I've editing this original question as I think I've narrowed down the problem... I

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.