Giter VIP home page Giter VIP logo

vi-motions's Introduction

More Vi Motions

Gitter Matrix

Add more Vi Motions

Motions added:

New* Map Keybinding Motion
No vicmd viins \e[H \e[F (Home/End) beginning/end of line
No visual viopp a' a" a` select a quoted string or backticks
No visual viopp i' i" i` select in a quoted string or backticks
No visual viopp a( a[ a{ a< ab a) a] a} a> aB select a bracketed segment
No visual viopp i( i[ i{ i< ib i) i] i} i> iB select in a bracketed segment
No** vicmd cs ds ys change/delete/add surrounding quotes/brackets
No visual S add surrounding quotes/brackets
Yes viopp v[motion] Force motion character-wise, or toggle exclusivity (see :h forced-motion in Vim)
Yes vicmd viopp visual ) ( g) g( move forward/back to start/end of command
Yes visual viopp as aS select a command
Yes visual viopp is iS select in a command (exclude terminating ; and control flow words)
Yes vicmd viopp visual (Not enabled by default) Move forward/back to start/end of $WORDCHARS-dependant words
Yes vicmd viopp visual (Not enabled by default) Move forward/back to start/end of shell words

*("New": Plugins marked as "not new" are distributed with Zsh and are simply loaded by this plugin. Plugins marked as "new" are written and maintained in this repo.)

**(The cs ds ys commands don't work well by default due to KEYTIMEOUT problems/conflicting with the c d y commands. I wrap c d y here, this lets me fix this problem.)

Future additions(?):

Select in/a command list (Note, [;] is any kind of command terminator)

  • Between [;]while/[;]until/[;]repeat and [;]do/{/(
  • Between [;]select and [;]do/{/(
  • Between [;]case and [;]esac
  • Between [;]do and [;]done
  • Between [;]if/[;]elif and [;]then
  • Between [;]then and [;]elif/[;]fi
  • Between [;]{ and }[;] or [;]( and )[;]

vi-motions's People

Contributors

xpmo avatar baod-rate 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.