Skip to content

Vim plugin for the Lox programming language (of Crafting Interpreters fame).

License

Notifications You must be signed in to change notification settings

timmyjose-projects/lox.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lox.vim

This is a barebones plugin implementation for the Lox programming language.

This plugin is compatible with Vim's (and NeoVim's) native plugin manager, Pathogen, Vundle, Plug etc.

Installation and Usage

Vanilla Vim/NeoVim

The plugin should work as-is with Vim/NeoVim's native plugin manager. For instance,

$ cd ~/.vim/pack/plugins/start && git clone https://github.com/timmyjose-projects/lox.vim

should have the plugin up and running.

Plug

Add the following line to your Vim/NeoVim configuration file's Vim-Plug plugin section:

Plug 'timmyjose-projects/lox.vim'

and then run PlugInstall or (PlugUpdate as the case may be).

Vundle

Add the following line to your Vim/NeoVim configuration file's Vundle plugin section:

Plugin 'timmyjose-projects/lox.vim'

and then run PluginInstall (or PluginUpdate as the case may be)

Pathogen

This plugin is compatible with Pathogen as well. Clone the lox.vim project into ~/.vim/bundle as for any other plugin:

cd ~/.vim/bundle && git clone https://github.com/timmyjose-projects/lox.vim

Options

If you wish to use jlox instead of clox, override the default as follows (in your Vum or NeoVim configuration file):

:let g:lox_use_jlox = 1

:help LoxUsage for more details.

Mappings

To run the currently loaded file:

<LocalLeader>r

(Run :help maplocalleader for reference in case you are not familiar with <LocalLeader>). :help LoxMappings for more details.

Ex commands

To run the currently loaded file:

:LoxRun

:help LoxExCommands for more details.

Help

To access the main help page,

:help lox.txt

(Note: In case this doesn't work, try regenerating the tags for help files by running :helptags ALL, ignoreing any errors).

LICENCE

See LICENCE.

About

Vim plugin for the Lox programming language (of Crafting Interpreters fame).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published