mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
parent
019a2423ac
commit
b5cb7155be
@ -1713,14 +1713,13 @@ These mappings also take a count, so `2]e` moves the current line 2 lines below.
|
|||||||
|
|
||||||
#### Quickly add empty lines
|
#### Quickly add empty lines
|
||||||
|
|
||||||
This is surely no must-have, but I prefer the following mappings over
|
|
||||||
`o<esc>`/`O<esc>`:
|
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
nnoremap [<space> :put! =''<cr>
|
nnoremap [<space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>'[
|
||||||
nnoremap ]<space> :put =''<cr>
|
nnoremap ]<space> :<c-u>put =repeat(nr2char(10), v:count1)<cr>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Now `5[<space>` inserts 5 blank lines above the current line.
|
||||||
|
|
||||||
#### Quickly edit your macros
|
#### Quickly edit your macros
|
||||||
|
|
||||||
This is a real gem! The mapping takes a register (or `*` by default) and opens
|
This is a real gem! The mapping takes a register (or `*` by default) and opens
|
||||||
|
Loading…
x
Reference in New Issue
Block a user