mirror of
				https://github.com/mhinz/vim-galore.git
				synced 2025-11-04 11:55:35 +08:00 
			
		
		
		
	Tips: quickly add empty lines
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user