Skip to content

⌨️ Vim plugin for Amber the programming language

License

Notifications You must be signed in to change notification settings

amber-lang/amber-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amber Vim Plugin

Amber Vim plugin in action

Syntax Highlighting

The plugin applies syntax highlighting to the following Amber script elements:

  • Shebang lines
  • Inline and documentation comments
  • Compiler flags
  • Function names for definitions and calls
  • Keywords and data types
  • Numeric and boolean operators
  • Numeric and boolean literals
  • String literals with interpolation
  • Bash commands with interpolation

Editor Options

The plugin also sets these Vim options:

  • Insert spaces not tabs; indent by four spaces
  • Enable smart indentation, so we indent on line after "{"
  • Continue inline or documentation comments on next line

Plugin Installation

In Vim 8 and above:

hwalters@Ghostwheel ~
$ mkdir -p ~/.vim/pack/plugins/start
hwalters@Ghostwheel ~
$ cd ~/.vim/pack/plugins/start
hwalters@Ghostwheel ~/.vim/pack/plugins/start
$ git clone [email protected]:amber-lang/amber-vim.git
Cloning into 'amber-vim'...

About

⌨️ Vim plugin for Amber the programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published