Permalink
Commits on May 2, 2012
  1. Don't clobber existing U map

    Closes #6.
    tpope committed May 2, 2012
Commits on Mar 10, 2012
  1. Support repetition with original register

    For commands that take an optional register (like p/P), Vim uses the
    same register on repetition. This enhancement allows the same for custom
    mappings, which need to call repeat#setreg() before repeat#set(). (No
    changes for the vast majority of mappings that don't use registers.) It
    even supports repeat of the expression register, with the expression
    being re-evaluated on repeat.
    inkarkat committed with tpope Dec 2, 2011
  2. Don't increment b:changedtick, offer invalidate instead

    repeat#set() so far automatically incremented b:changedtick. Problems
    with this:
    1. The way that was done clobbered the expression register "=.
    2. It causes the "readonly" warning and "Cannot make changes" error in
       readonly/nomodifiable buffers, so mappings that don't modify anything
       cannot be repeated there.
    3. It's actually not needed most of the time, because many user mappings
       and all repeatable Vim built-in normal mode commands I know (with the
       exception of yank with cpo+=y) actually do modify the buffer
       themselves.
    
    For the exceptional case where the user has a set of related mappings,
    one that repeats naturally (e.g. a custom operator, via g@), and one
    that invokes repeat#set(), and both do not modify the buffer, a new
    function repeat#invalidate() is offered. This should be called by the
    former mapping, and all is well.
    inkarkat committed with tpope Dec 2, 2011
Commits on Feb 23, 2012
  1. Fix adding trailing spaces when 've' is not empty

    The problem appears when cursor is positioned after line end, thus
    running p command (even with empty "-register) causes Vim to add spaces
    from line end until cursor.
    xaizek committed with tpope Jan 14, 2012
Commits on Aug 29, 2011
  1. Clarify copyright

    tpope committed Aug 29, 2011
  2. Fix heading

    tpope committed Aug 29, 2011
  3. Add a README

    tpope committed Aug 29, 2011
  4. Add script id to heading

    tpope committed Aug 29, 2011
Commits on Apr 25, 2008
  1. Initial commit

    tpope committed Apr 25, 2008