Format
This commit is contained in:
parent
572f410bff
commit
68fb36a4ef
|
@ -7,6 +7,7 @@ hljs_languages: [vim]
|
||||||
let name = "John"
|
let name = "John"
|
||||||
echo "Hello, " . name
|
echo "Hello, " . name
|
||||||
```
|
```
|
||||||
|
{:.light}
|
||||||
|
|
||||||
You can either put this in a script (`script.vim`) and run it (`:source script.vim`), or you can type the commands individually in normal mode as `:let ...` and `:echo ...`.
|
You can either put this in a script (`script.vim`) and run it (`:source script.vim`), or you can type the commands individually in normal mode as `:let ...` and `:echo ...`.
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ Variables
|
||||||
```vim
|
```vim
|
||||||
let var = "hello"
|
let var = "hello"
|
||||||
```
|
```
|
||||||
|
{:.light}
|
||||||
|
|
||||||
### Variable prefixes
|
### Variable prefixes
|
||||||
The `s:` prefix is also available in function names. See `:help local-variables`
|
The `s:` prefix is also available in function names. See `:help local-variables`
|
||||||
|
@ -104,6 +106,7 @@ function! s:Initialize(cmd, args)
|
||||||
return true
|
return true
|
||||||
endfunction
|
endfunction
|
||||||
```
|
```
|
||||||
|
{:.light}
|
||||||
|
|
||||||
### Namespacing
|
### Namespacing
|
||||||
|
|
||||||
|
@ -171,6 +174,7 @@ Custom commands start with uppercase letters. The `!` redefines a command if it
|
||||||
```vim
|
```vim
|
||||||
command! Save :set fo=want tw=80 nowrap
|
command! Save :set fo=want tw=80 nowrap
|
||||||
```
|
```
|
||||||
|
{:.light}
|
||||||
|
|
||||||
### Commands calling functions
|
### Commands calling functions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue