Update vim

This commit is contained in:
Rico Sta. Cruz 2015-04-16 23:15:07 +08:00
parent 553ec5208b
commit ed29edbb53
1 changed files with 9 additions and 9 deletions

View File

@ -257,25 +257,27 @@ Vim-isms
### Execute a command
Runs an ex command you typically run with `:`
```vim
execute "vsplit"
execute "e " . fnameescape(filename)
```
### Echo
```
```vim
echohl WarningMsg | echomsg "=> " . a:msg | echohl None
```
### Propmts
### Prompts
```
```vim
let result = confirm("Sure?")
execute "confirm q"
```
### Built-ins
```
```vim
has("feature") " :h feature-list
executable("python")
globpath(&rtp, "syntax/c.vim")
@ -290,15 +292,13 @@ exists("g:...")
Mapping
-------
```
```vim
nnoremap
vmap
...
```
Components:
```
```vim
[nvixso](nore)map
^ ^
| don't recurse
@ -373,7 +373,7 @@ hi def link markdownH1 htmlH1
### Include guards
```
```vim
if exists('g:loaded_myplugin')
finish
endif