Code Monkey home page Code Monkey logo

vis's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1195

I'm hereby making the <vis.vim> script, long available at http://www.drchip.org/astronaut/vim/index.html#VIS, also available here at vim.sf.net.  There are two commands made available: B and S.


----------------
Visual Commands:
----------------

    B

    Use V, v, or ctrl-v to visually mark some region.  Then use
       :B cmd     (this command will appear as:   :'<,'>B cmd)

    The command will then be applied to just the visually selected region.
    For examples:

      Use ctrl-v to select a column and then do a substitute on just that column.  
      ctrl-v ..move.. :B s/pattern/becomes/
    
      Use ctrl-v to select a column, then apply an external filter to just that column.
      ctrl-v ..move.. :B !sort


----------------
Visual Searches:
----------------

    S

    Use V, v, or ctrl-v to visually mark some region.  Then use
        :S pattern   (this search will appear as     :'<,'>S pattern)

    The search will then be applied to just the visually selected region.
    It may be repeated with n and N commands, too (without having to
    re-mark the region).  A plain S will apply the last :S-pattern
    to the latest selected region.


-----------------
Related Subjects:
-----------------

 * For incrementing/decrementing numbers, dates, and letters in a column: see vimscript#670 and vimtip#150
 * For sorting based on a column (column-restricted, whole lines but column-keyed), see vimtip#588
 * For overwriting visual blocks with other visual blocks: see vimtip#808
 * For more on applying substitutes to a visual block: see vimtip#63
 * For swapping pairs of visual blocks: see vimtip#329

(alpha/beta version available at http://www.drchip.org/astronaut/vim/index.html#VIS)

vis's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.