mirror of
				https://github.com/mhinz/vim-galore.git
				synced 2025-11-04 20:05:36 +08:00 
			
		
		
		
	@@ -1768,11 +1768,14 @@ register.
 | 
				
			|||||||
I often use this to correct typos I did while recording a macro.
 | 
					I often use this to correct typos I did while recording a macro.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```vim
 | 
					```vim
 | 
				
			||||||
nnoremap <leader>m  :<c-u><c-r>='let @'. v:register .' = '. string(getreg(v:register))<cr><c-f><left>
 | 
					nnoremap <leader>m  :<c-u><c-r><c-r>='let @'. v:register .' = '. string(getreg(v:register))<cr><c-f><left>
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Use it like this `<leader>m` or `"q<leader>m`.
 | 
					Use it like this `<leader>m` or `"q<leader>m`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Notice the use of `<c-r><c-r>` to make sure that the `<c-r>` is inserted
 | 
				
			||||||
 | 
					literally. See `:h c_^R^R`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Quickly jump to header or source file
 | 
					#### Quickly jump to header or source file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This technique can probably be applied to many filetypes. It sets _file marks_
 | 
					This technique can probably be applied to many filetypes. It sets _file marks_
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user