From b5cb7155be15b1e58c47398295d67def1729ba10 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 29 Jan 2016 12:12:23 +0100 Subject: [PATCH] Tips: make [ and ] take count References #75. --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a3cf0f9..97f9ec2 100644 --- a/README.md +++ b/README.md @@ -1713,14 +1713,13 @@ These mappings also take a count, so `2]e` moves the current line 2 lines below. #### Quickly add empty lines -This is surely no must-have, but I prefer the following mappings over -`o`/`O`: - ```vim -nnoremap [ :put! ='' -nnoremap ] :put ='' +nnoremap [ :put! =repeat(nr2char(10), v:count1)'[ +nnoremap ] :put =repeat(nr2char(10), v:count1) ``` +Now `5[` inserts 5 blank lines above the current line. + #### Quickly edit your macros This is a real gem! The mapping takes a register (or `*` by default) and opens