mirror of
				https://github.com/mhinz/vim-galore.git
				synced 2025-11-04 11:55:35 +08:00 
			
		
		
		
	Basics: Locality?
This commit is contained in:
		@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
 | 
			
		||||
- Basics: [Registers?](README.md#registers)
 | 
			
		||||
- Basics: [Autocmds?](README.md#autocmds)
 | 
			
		||||
- Basics: [Motions? Operators? Text objects?](README.md#motions-operators-text-objects)
 | 
			
		||||
- Basics: [Locality?](#locality)
 | 
			
		||||
- Usage: [Clipboard](README.md#clipboard)
 | 
			
		||||
- Quirks: [Newline used for NUL](README.md#newline-used-for-nul)
 | 
			
		||||
- Quirks: [Bracketed paste (or why do I have to set 'paste' all the time?)](README.md#bracketed-paste-or-why-do-i-have-to-set-paste-all-the-time)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							@@ -19,6 +19,7 @@ added every day. Things about to be added can be found here:
 | 
			
		||||
- [Autocmds?](#autocmds)
 | 
			
		||||
- [Quickfix and location lists?](#quickfix-and-location-lists)
 | 
			
		||||
- [Colorschemes?](#colorschemes)
 | 
			
		||||
- [Locality?](#locality)
 | 
			
		||||
 | 
			
		||||
#### [Usage](#usage-1)
 | 
			
		||||
 | 
			
		||||
@@ -409,6 +410,20 @@ I use [gruvbox](https://github.com/morhetz/gruvbox) for the GUI and
 | 
			
		||||
 | 
			
		||||
More colorschemes: [here](#list-of-colorschemes-1)
 | 
			
		||||
 | 
			
		||||
#### Locality?
 | 
			
		||||
 | 
			
		||||
Many of the concepts mentioned above also have _local_ counterparts:
 | 
			
		||||
 | 
			
		||||
| Global | Local | Scope | Help |
 | 
			
		||||
|--------|-------|-------|------|
 | 
			
		||||
| `:set`     | `:setlocal`           | buffer or window | `:h local-options`    |
 | 
			
		||||
| `:map`     | `:map <buffer>`       | buffer           | `:h :map-local`       |
 | 
			
		||||
| `:autocmd` | `:autocmd * <buffer>` | buffer           | `:h autocmd-buflocal` |
 | 
			
		||||
| `:cd`      | `:lcd`                | window           | `:h :lcd`             |
 | 
			
		||||
 | 
			
		||||
Variables also sport different scopes, but will be explained in
 | 
			
		||||
[Vim scriping](#vim-scripting).
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
#### Getting help offline
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user