if_v8 : V8 interface to Vim
| script karma |
Rating 4/1,
Downloaded by 3704 |
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Yukihiro Nakadaira |
| |
| script type |
| game |
| |
| description |
V8 is Google's open source JavaScript engine.
Requirements:
linux or windows.
Vim executable file with some exported symbol that if_v8 requires.
On linux:
Compile with gcc's -rdynamic option.
On windows (msvc):
Use vim_export.def and add linker flag "/DEF:vim_export.def".
nmake -f Make_mvc.mak linkdebug=/DEF:vim_export.def
Usage:
:source /path/to/if_v8/init.vim
:V8 print('hello, world')
=> hello, world
:V8 3 + 4
=> 7
:V8 vim.execute('version')
=> ... version message
:V8 var tw = vim.eval('&tw')
:V8 tw
=> 78
:V8 vim.let('&tw', '40')
:echo &tw
=> 40
:V8 load('foo.js') |
| |
| install details |
| Latest source: svn checkout http://vim-soko.googlecode.com/svn/trunk/if_v8 |
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 216.73.216.46
|