Permalink
Commits on Jan 31, 2018
  1. repeat.vim 1.2

    tpope committed Jan 31, 2018
    * Provide <Plug> mappings.
    * Enable repeating operators with custom motions.
    * Assorted bug fixes.
Commits on Jan 21, 2018
  1. Fix undo messages being hidden (#33)

    wilywampa authored and tpope committed Jan 21, 2018
Commits on Apr 21, 2017
Commits on May 9, 2015
  1. Merge pull request #47 from orlp/master

    tpope committed May 9, 2015
    Prevent stack trace of search errors.
Commits on May 7, 2015
  1. Fix bogus spaces in maps

    tpope committed May 7, 2015
Commits on Apr 22, 2015
Commits on Apr 3, 2015
  1. Merge pull request #46 from wellle/45-fix-feedkeys-count

    tpope committed Apr 3, 2015
    Revert order of feedkeys calls to fix counts
  2. Revert order of feedkeys calls to fix counts

    wellle committed Apr 3, 2015
    Since we are using the `i` flag, the feedkeys calls insert the keys
    instead of appending. That's why we need to insert the second part of
    the command before inserting the first part in front of it.
Commits on Mar 8, 2015
  1. Merge pull request #43 from jasonkuhrt/patch-1

    tpope committed Mar 8, 2015
    Update README.markdown
  2. Update README.markdown

    jasonkuhrt committed Mar 8, 2015
Commits on Feb 20, 2015
  1. Merge pull request #42 from Konfekt/patch-2

    tpope committed Feb 20, 2015
    remove trailing spaces in remaps
  2. remove trailing spaces in remaps

    Konfekt committed Feb 20, 2015
    Vim interprets `nmap <key> <mapping> ` as `nmap <key> <mapping><space>`. 
    Here we do not want this and put `|` directly after `<mapping>`.
  3. Merge pull request #41 from Konfekt/patch-2

    tpope committed Feb 20, 2015
    more convenient remapping by using <plug> mappings
  4. more convenient remapping by using <plug> mappings

    Konfekt committed Feb 20, 2015
    Now mappings can be remapped in `.vimrc` by
    `nnoremap <key> <Plug>(RepeatUndoLine)`
    and disablabled in `.vimrc` by
    `nnoremap <SID>(DisableRepeatUndoLine) <Plug>(RepeatUndoLine)`
Commits on Jan 31, 2015
  1. Merge pull request #39 from wellle/feedkeys-i

    tpope committed Jan 31, 2015
    Pass flag 'i' to feedkeys() call
Commits on Jan 28, 2015
  1. Pass flag 'i' to feedkeys() calls

    wellle committed Jan 28, 2015
    Only fall back to :norm for versions 7.3.100 <= v < 7.4.601
Commits on Jan 19, 2015
  1. Merge pull request #37 from justinmk/fix703

    tpope committed Jan 19, 2015
    Fix condition for Vim <= 7.3
  2. Fix condition for Vim <= 7.3

    Justin M. Keyes
    Justin M. Keyes committed Jan 19, 2015
  3. Merge pull request #36 from justinmk/norm

    tpope committed Jan 19, 2015
    Use :norm for Vim 7.3.100 or later
Commits on Jan 17, 2015
  1. Use :norm for Vim 7.3.100 or later

    justinmk committed Jan 17, 2015
    Fixes #23
Commits on Jan 16, 2015
  1. Merge pull request #35 from wilywampa/invalidate

    tpope committed Jan 16, 2015
    Fix invalidate() being overridden by autocmd
Commits on Jan 11, 2015
Commits on Dec 9, 2014
  1. Make repeat#wrap open a fold if &foldopen contains 'all'

    d125q authored and tpope committed Dec 8, 2014
    Closes #31.
Commits on Dec 24, 2013
  1. Allow repeating operators with custom motions

    tpope committed Dec 24, 2013
    Closes #8.
Commits on Jan 1, 2013
  1. repeat.vim 1.1

    tpope committed Jan 1, 2013
    * Fix adding trailing spaces when 've' is not empty.
    * Don't increment b:changedtick, offer invalidate instead.
    * Support repetition with original register.
    * Don't clobber existing U map.
    * Respect 'foldopen' on undo.
    * Allow customizing all mappings.
Commits on Dec 31, 2012
  1. Allow customizing all mappings

    inkarkat authored and tpope committed Nov 26, 2012
    f1d0fbb allowed customizing the .
    mapping by making the implementation function publicly accessible. Let's
    do the same to s:wrap(), so that the other mappings (u, U, <C-R>) can be
    extended, too.
    
    (Personally, I'd like to have undo / redo stop and beep at the last
    saved position, to avoid that I accidentally undo beyond the saved state
    even though I didn't intend to.)
Commits on Dec 1, 2012
  1. Documentation fix for repeat#setreg()

    inkarkat authored and tpope committed Nov 29, 2012
    Need to :execute the :silent! call to avoid that the remainder of the
    command line is aborted together with the call when repeat.vim is not
    installed. Otherwise, <SID>MyFunction() won't be invoked, and the
    mapping does nothing.
Commits on Nov 24, 2012
  1. Go back to using feedkeys()

    AndrewRadev authored and tpope committed Nov 7, 2012
    Since there seems to be a bug with "norm" in Vim prior to 7.3.100,
    better go back to using feedkeys.
    
    The repeat call can still be remapped by using something like:
    
      nnoremap . :call repeat#run(v:count)<bar>call feedkeys('`.', 'n')<cr>
Commits on Nov 3, 2012
  1. Allow for some additional post-processing

    AndrewRadev authored and tpope committed Nov 3, 2012
    This commit makes the s:repeat function public as repeat#run to allow
    manual remapping for customization.
Commits on Aug 22, 2012
  1. Respect 'foldopen' on undo

    tpope committed Aug 22, 2012
    Closes #9.
Commits on May 2, 2012
  1. Don't clobber existing U map

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

    inkarkat authored and tpope committed Dec 2, 2011
    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.
  2. Don't increment b:changedtick, offer invalidate instead

    inkarkat authored and tpope committed Dec 2, 2011
    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.
Commits on Feb 23, 2012
  1. Fix adding trailing spaces when 've' is not empty

    xaizek authored and tpope committed Jan 14, 2012
    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.