mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Tips: quickly add empty lines
This commit is contained in:
parent
c441df37f0
commit
feb724995f
@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
- Tips: [Saner behavior of n and N](README.md#saner-behavior-of-n-and-n)
|
||||
- Tips: [Quickly move current line](README.md#quickly-move-current-line)
|
||||
- Tips: [Quickly add empty lines](README.md#quickly-add-empty-lines)
|
||||
|
||||
## [1.0] - 2016-01-06
|
||||
First release!
|
||||
|
10
README.md
10
README.md
@ -19,6 +19,7 @@
|
||||
#### [Tips](#tips-1)
|
||||
- [Saner behavior of n and N](#saner-behavior-of-n-and-n)
|
||||
- [Quickly move current line](#quickly-move-current-line)
|
||||
- [Quickly add empty lines](#quickly-add-empty-lines)
|
||||
|
||||
#### [Debugging](#debugging-1)
|
||||
- [General tips](#general-tips)
|
||||
@ -371,6 +372,15 @@ nnoremap ]e :<c-u>execute 'move +'. v:count1<cr>
|
||||
```
|
||||
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<esc>`/`O<esc>`:
|
||||
```viml
|
||||
nnoremap [<space> :put! =''<cr>
|
||||
nnoremap ]<space> :put =''<cr>
|
||||
```
|
||||
|
||||
## Debugging
|
||||
|
||||
#### General tips
|
||||
|
Loading…
x
Reference in New Issue
Block a user