Giter VIP home page Giter VIP logo

vim-expand's Introduction

vim-expand

Allows you to filter your current line or visual selection through the expand function in place via the :Expand command. This allows you to write things like the following.

function {add,remove}User() {
    // ...
}

And expand it to this.

function addUser() {
    // ...
}

function removeUser() {
    // ...
}

You can also use things like {1..10} to iterate through numbers as well as environment variables such as $HOME, so it works much like bash brace and variable expansion. Read the expand documentation for all the details, but basically it supports a lot of things.

Usage

Simply execute :Expand on your desired line or visually select a block of lines, such as the function above, and then execute :Expand. Vim will automatically populate the range in front of the command for you. Of course you can enter a manual range with :1,3Expand.

Installation

Add Wolfy87/vim-expand to your favourite plugin manager such as vim-plug, which I'm currently using in my dotfiles.

Plug 'Wolfy87/vim-expand'

License

The Unlicense, so you can use this however you want, wherever you want. The full license file can be found in this directory within the UNLICENSE file.

Author

Oliver Caldwell / @OliverCaldwell

vim-expand's People

Contributors

olical avatar

Watchers

 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.