Basics: Locality?

This commit is contained in:
Marco Hinz 2016-01-07 17:20:08 +01:00
parent f0808b2809
commit 314636ea7b
2 changed files with 16 additions and 0 deletions

View File

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

View File

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