diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-13 22:25:17 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-13 22:25:17 +1200 |
commit | 20d1d12f9be57e60e4998f3680716afdb7b435e6 (patch) | |
tree | 620d6ea1c6afd47142a38f1b30c4a617eb648544 /README.md | |
parent | Merge branch 'hotfix/v1.0.1' into develop (diff) | |
download | vim-put-blank-lines-20d1d12f9be57e60e4998f3680716afdb7b435e6.tar.gz vim-put-blank-lines-20d1d12f9be57e60e4998f3680716afdb7b435e6.zip |
Refactor to use 'operatorfunc' with autoload
This removes the repeat.vim dependency for repeats.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -2,13 +2,12 @@ put\_blank\_lines.vim ===================== This plugin provides mapping targets for inserting blank lines above or below -the current line without going into insert mode. The applicable code is lifted -from [unimpaired.vim][1]. It still works with [repeat.vim][2], if that's -installed, to make the mappings repeatable. +the current line without going into insert mode, including count prefixes and +repeating with the dot command. -I wrote this because I used these mappings from the original plugin frequently, -but (almost) nothing else from it. The only functional difference is that the -number of added lines is not reported, via a `:silent` suppression. +The idea and insert method is lifted from the same mappings for +[unimpaired.vim][1], but called with `'operatorfunc'` to allow counts and +repeating without requiring [repeat.vim][2]. Configuration ------------- |