Update
This commit is contained in:
parent
86e99f4e42
commit
bdf375bb64
21
vimscript.md
21
vimscript.md
|
@ -2,6 +2,14 @@
|
||||||
title: Vim script
|
title: Vim script
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Basics
|
||||||
|
------
|
||||||
|
|
||||||
|
```vim
|
||||||
|
let name = "John"
|
||||||
|
echo "Hello, " . name
|
||||||
|
```
|
||||||
|
|
||||||
Variables
|
Variables
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
@ -62,7 +70,7 @@ let str = "String"
|
||||||
let str = "String with \n newline"
|
let str = "String with \n newline"
|
||||||
|
|
||||||
let literal = 'literal, no \ escaping'
|
let literal = 'literal, no \ escaping'
|
||||||
let literal = 'that''s enough' # double '' => '
|
let literal = 'that''s enough' " double '' => '
|
||||||
|
|
||||||
echo "result = " . re " concatenation
|
echo "result = " . re " concatenation
|
||||||
```
|
```
|
||||||
|
@ -474,6 +482,17 @@ echo 'hello'
|
||||||
echohl WarningMsg | echomsg "=> " . a:msg | echohl None
|
echohl WarningMsg | echomsg "=> " . a:msg | echohl None
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Settings
|
||||||
|
|
||||||
|
```vim
|
||||||
|
set number
|
||||||
|
set nonumber
|
||||||
|
set number! " toggle
|
||||||
|
set numberwidth=5
|
||||||
|
set guioptions+=e
|
||||||
|
```
|
||||||
|
|
||||||
### Prompts
|
### Prompts
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
|
|
Loading…
Reference in New Issue