Coder Social home page Coder Social logo

gnebbia / vimi Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 25 KB

A vimscript interpreter for GNU/Linux, MacOS and *BSDs

License: GNU General Public License v3.0

Vim Script 50.80% Shell 49.20%
vim vimscript vimscript-library interpreter interpreted-language scripting-language vimi

vimi's Introduction

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:

git clone https://github.com/gnebbia/vimi

and then:

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:

vimi myscript.vim

As a demo example, let's create a simple script which we will call example.vim with the following content:

"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:

vimi example.vim --arg1 value1 --arg2 value2 -v

License

The vimi interpreter is under GPLv3 license. Please see LICENSE file for more details.

vimi's People

Contributors

gnebbia avatar

Watchers

 avatar  avatar  avatar

Forkers

kexuzzz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.