https://github.com/gnebbia/vimi
A vimscript interpreter for GNU/Linux, MacOS and *BSDs
https://github.com/gnebbia/vimi
interpreted-language interpreter scripting-language vim vimi vimscript vimscript-library
Last synced: 7 months ago
JSON representation
A vimscript interpreter for GNU/Linux, MacOS and *BSDs
- Host: GitHub
- URL: https://github.com/gnebbia/vimi
- Owner: gnebbia
- License: gpl-3.0
- Created: 2018-08-29T10:41:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T21:55:26.000Z (over 7 years ago)
- Last Synced: 2025-03-02T22:29:46.255Z (about 1 year ago)
- Topics: interpreted-language, interpreter, scripting-language, vim, vimi, vimscript, vimscript-library
- Language: Vim script
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vimi
This project is an attempt at creating a simple vimscript interpreter.
Vimi is able to take as input a vimscript and execute it, and hence
it makes vim more similar to any other full-fledged programming
language.
## Installation
In order to install vimi we can simply clone this repo
and execute the install.sh script by doing:
```sh
git clone https://github.com/gnebbia/vimi
```
and then:
```sh
cd vimi/
bash install.sh
```
## Executing a script
Like other programming languages, we can execute our vim script
by calling the vimscript interpreter like this:
```sh
vimi myscript.vim
```
As a demo example, let's create a simple script which we will
call example.vim with the following content:
```vim
"take user input
let ciao = Input("Type something: ")
"print to screen what user inserted
echo "You inserted: " . ciao
"print to screen arguments passed"
let passed_args = Argv()
echo(passed_args)
```
vimi will execute the script by executing:
```sh
vimi example.vim --arg1 value1 --arg2 value2 -v
```
## License
The vimi interpreter is under GPLv3 license. Please see LICENSE file for more
details.