forked from drichardson/vim-vex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvex.vim.txt
111 lines (80 loc) · 4.38 KB
/
vex.vim.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
*vex.vim* *vex* VEX development plugin
==============================================================================
CONTENTS *vex-contents*
1. Intro ............... |vex-contents|
2. Usage ............... |vex-intro|
3. Install ............. |vex-usage|
4. Settings ............ |vex-settings|
5. Credits ............. |vex-credits|
==============================================================================
INTRO *vex-intro*
VEX support for Vim. vex.vim comes with a syntax highlighting,
`dictionary` completion of VEX built-in functions and global variables,
and snippet support for `UltiSnips`.
==============================================================================
USAGE *vex-usage*
Code completion is enabled via 'dictionary', which you
can trigger with |i_CTRL-X_CTRL-K|. Note that VEX has several different
contexts, each with their own variables and functions. By default the
cvex context is used but you can use another VEX context with `g:vex_context`.
==============================================================================
INSTALL *vex-install*
vex.vim follows the standard runtime path structure and should work with any of
the major plugin managers.
For Pathogen or Vim |packages|, just clone the repo. For other plugin managers
you may also need to add the lines to your vimrc to execute the plugin
manager's install command.
* Vim 8 |packages|
>
git clone https://github.com/drichardson/vex.vim.git \
~/.vim/pack/plugins/start/vex.vim
* https://github.com/tpope/vim-pathogen >
git clone https://github.com/drichardson/vex.vim.git ~/.vim/bundle/vex.vim
<
* https://github.com/VundleVim/Vundle.Vim
Plugin 'drichardson/vex.vim'
* Manual (not recommended) >
Copy all of the files into your `~/.vim` directory
<
Depending on your installation method, you may have to generate the plugin's
|:helptags| manually (e.g. `:helptags ALL`).
To update the completion dictionary, run the generate-dictionary.py Python
script. You will need vcc in your PATH. You can easily do this by using the Houdini
Command Line Tools shell or the shell started from Houdini. Then navigate to the
vex-vim directory, and then run:
python generate-dictionary.py > dictionary.txt
==============================================================================
SETTINGS *vex-settings*
*'g:vex_snippet_engine'*
Define the snippet engine to use. The default is to auto-detect one. Valid
values are:
automatic Automatically detect a snippet engine.
ultisnips https://github.com/SirVer/ultisnips
>
let g:vex_snippet_engine = "automatic"
<
*'g:vex_context'*
The VEX context to use for completion. By default the cvex context is used.
Valid values are:
surface https://www.sidefx.com/docs/houdini/vex/contexts/surface.html
displace https://www.sidefx.com/docs/houdini/vex/contexts/displace.html
light https://www.sidefx.com/docs/houdini/vex/contexts/light.html
shadow https://www.sidefx.com/docs/houdini/vex/contexts/shadow.html
fog https://www.sidefx.com/docs/houdini/vex/contexts/fog.html
chop https://www.sidefx.com/docs/houdini/vex/contexts/chop.html
sop https://www.sidefx.com/docs/houdini/vex/contexts/sop.html
cop2 https://www.sidefx.com/docs/houdini/vex/contexts/cop.html
image3d https://www.sidefx.com/docs/houdini/vex/contexts/image3d.html
cvex https://www.sidefx.com/docs/houdini/vex/contexts/cvex.html
>
let g:vex_context = 'cvex'
For more information, see VEX contexts in SideFX's documentation:
https://www.sidefx.com/docs/houdini/vex/contexts/index.html
==============================================================================
CREDITS *vex-credits*
* SideFX for authoring the vfl.vim syntax file and putting it in the public
domain.
* Other vim-plugins, thanks for inspiration (vim-go).
* vex.vim contributors:
https://github.com/drichardson/vex.vim/graphs/contributors
vim: ft=help tw=78 et ts=2 sw=2 sts=2 norl