Tips: quickly add empty lines

This commit is contained in:
Marco Hinz 2016-01-06 03:14:07 +01:00
parent c441df37f0
commit feb724995f
2 changed files with 11 additions and 0 deletions

View File

@ -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!

View File

@ -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