https://github.com/begriffs/vim_r
Don't use VimL, use VimR
https://github.com/begriffs/vim_r
Last synced: 4 months ago
JSON representation
Don't use VimL, use VimR
- Host: GitHub
- URL: https://github.com/begriffs/vim_r
- Owner: begriffs
- License: mit
- Created: 2013-03-13T17:21:06.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-20T17:13:01.000Z (almost 13 years ago)
- Last Synced: 2025-02-28T03:27:10.818Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Easy Vim scripting with Ruby [](https://travis-ci.org/begriffs/vim_r)
Nobody really likes VimL, so try VimR.
## Usage
If your vim is compiled with Ruby support then you can embed Ruby code
inside VimL and use the VimR library.
```
ruby require 'rubygems'; require 'vim_r'
function! GoMiddle()
ruby << RUBY
w = VimL::Window.current
w.cursor 0, w.buffer.length / 2
RUBY
endfunction
```