Giter Site home page Giter Site logo

repmo.vim's Introduction

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

Usage by example:

  Type "5j" (without quotes) and then ";" to repeat "5j".
  Type "hjkl" and then ";", it still repeats "5j".
  Type "," to do "5k" (go in reverse direction).
  Type "4k" and then ";" to repeat "4k".

  The following motions (and scroll commands) are mapped per default:
      j,k, h,l, Ctrl-E,Ctrl-Y, zh,zl

Check out:

  Visual mode, e.g. "V5j;;;;"
  "f{char}" followed by ";," -- it should still work
  Operator pending mode with ";" and ","

Commands:

  :RepmoMap {motion}|{reverse-motion} ...

      Map {motion} to be repeatable with ";".  Use {reverse-motion} for ",".  Key notation is like in mappings.

Options, with defaults:

  " keys to be used for repeating (notation like in mappings), checked frequently:
  :let repmo_key = ";"
  :let repmo_revkey = ","

  " map some default motions (argument string for :RepmoMap):
  :let g:repmo_mapmotions = "j|k h|l <C-E>|<C-Y> zh|zl"

Notes:

  Your own remapping of a motion is silently discarded.
  Your own remappings for "f", "F", "t" and "T" are kept.

2009 Jun 03

repmo.vim's People

Contributors

houl avatar jceb avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

repmo.vim's Issues

Mapping <C-d>|<C-u> doesn't work

When I add | to g:repmo_mapmotions the mappings move the cursor just one line down/up. This seems to be a different issue from issue #1.
:normal! <C-d> always moves the cursor just one line down when has been remapped.

Mappings get scrambled over time

When I use repmo over a longer time the mappings somehow get scrambled. E.g. "w" moves one space forward, instead of one word forward. Same for "b". I suppose this is a more general issue.

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.