/vim-quark

A syntax highlighting and snippets plugin for Quark lang

Primary LanguageVim scriptMIT LicenseMIT

vim-quark

Syntaxic coloration and snippets plugin for Quark.

Installation

  • Install pathogen if you haven't already

  • Add those lines to your .vimrc if this is not already done:

execute pathogen#infect()
syntax on
filetype plugin indent on
  • Run in a terminal: vlugger install quark-lang/vim-quark

Pathogen

  • Add those lines to your .vimrc if this is not already done:
execute pathogen#infect()
syntax on
filetype plugin indent on
  • Run in a terminal: cd ~/.vim/bundle && git clone https://github.com/quark-lang/vim-quark

Vim Plug

  • Write the following in your .vimrc: Plug 'quark-lang/vim-quark'
  • Run the following command in vim:
:source %
:PlugInstall

Usage

Code completion

  • Completion dictionnary is loaded from a file (default: $HOME/.vim/bundle/vim-quark/quark-dict), you can change this file by running let g:quark_complete = "your/custom/path"

Syntax highlighting

  • Syntax highlighting is automatic when you open a .qrk file

Running code

  • Use :QuarkRun to run the file you have in the current buffer *NOTE: You can change the quark executable by doing let g:quark_command = "your_custom_command"

Snippets

  • Condition snippet: type if in insert mode
  • Function snippet: type fn in insert mode

Acknowledgements