This commit is contained in:
Rico Sta. Cruz 2015-04-17 00:23:18 +08:00
parent 86e99f4e42
commit bdf375bb64
1 changed files with 20 additions and 1 deletions

View File

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