ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

V

by elliotchance ALL

Sublime Text support for the V programming language

Details

  • 1.5.0
  • github.​com
  • 3 years ago
  • 1 month ago
  • 3 years ago

Installs

  • Total 1K
  • Win 677
  • Mac 275
  • Linux 516
Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9
Windows 0 1 1 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 2
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 3 2 0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0 0 0 1
01234Mar 26Mar 23Mar 20Mar 17Mar 14Mar 11Mar 8Mar 5Mar 2Feb 27Feb 24Feb 21Feb 18Feb 15Feb 12Feb 9Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 1 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 1Mar 12 Linux: 0 Mac: 0 Windows: 0Mar 11 Linux: 0 Mac: 0 Windows: 0Mar 10 Linux: 0 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 0Mar 7 Linux: 0 Mac: 0 Windows: 1Mar 6 Linux: 0 Mac: 0 Windows: 1Mar 5 Linux: 1 Mac: 0 Windows: 1Mar 4 Linux: 3 Mac: 0 Windows: 0Mar 3 Linux: 2 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 0 Windows: 1Feb 25 Linux: 0 Mac: 0 Windows: 1Feb 24 Linux: 0 Mac: 0 Windows: 0Feb 23 Linux: 1 Mac: 2 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 1Feb 21 Linux: 1 Mac: 0 Windows: 0Feb 20 Linux: 0 Mac: 0 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 1 Mac: 0 Windows: 0Feb 17 Linux: 0 Mac: 0 Windows: 0Feb 16 Linux: 1 Mac: 0 Windows: 0Feb 15 Linux: 1 Mac: 0 Windows: 0Feb 14 Linux: 0 Mac: 1 Windows: 1Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 0 Windows: 0Feb 9 Linux: 1 Mac: 0 Windows: 2Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 1 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 1Mar 12 Linux: 0 Mac: 0 Windows: 0Mar 11 Linux: 0 Mac: 0 Windows: 0Mar 10 Linux: 0 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 0Mar 7 Linux: 0 Mac: 0 Windows: 1Mar 6 Linux: 0 Mac: 0 Windows: 1Mar 5 Linux: 1 Mac: 0 Windows: 1Mar 4 Linux: 3 Mac: 0 Windows: 0Mar 3 Linux: 2 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 0 Windows: 1Feb 25 Linux: 0 Mac: 0 Windows: 1Feb 24 Linux: 0 Mac: 0 Windows: 0Feb 23 Linux: 1 Mac: 2 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 1Feb 21 Linux: 1 Mac: 0 Windows: 0Feb 20 Linux: 0 Mac: 0 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 1 Mac: 0 Windows: 0Feb 17 Linux: 0 Mac: 0 Windows: 0Feb 16 Linux: 1 Mac: 0 Windows: 0Feb 15 Linux: 1 Mac: 0 Windows: 0Feb 14 Linux: 0 Mac: 1 Windows: 1Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 0 Windows: 0Feb 9 Linux: 1 Mac: 0 Windows: 2Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 1Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 1 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 1Mar 12 Linux: 0 Mac: 0 Windows: 0Mar 11 Linux: 0 Mac: 0 Windows: 0Mar 10 Linux: 0 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 0Mar 7 Linux: 0 Mac: 0 Windows: 1Mar 6 Linux: 0 Mac: 0 Windows: 1Mar 5 Linux: 1 Mac: 0 Windows: 1Mar 4 Linux: 3 Mac: 0 Windows: 0Mar 3 Linux: 2 Mac: 0 Windows: 0Mar 2 Linux: 0 Mac: 0 Windows: 0Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 0Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 0 Windows: 1Feb 25 Linux: 0 Mac: 0 Windows: 1Feb 24 Linux: 0 Mac: 0 Windows: 0Feb 23 Linux: 1 Mac: 2 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 1Feb 21 Linux: 1 Mac: 0 Windows: 0Feb 20 Linux: 0 Mac: 0 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 0Feb 18 Linux: 1 Mac: 0 Windows: 0Feb 17 Linux: 0 Mac: 0 Windows: 0Feb 16 Linux: 1 Mac: 0 Windows: 0Feb 15 Linux: 1 Mac: 0 Windows: 0Feb 14 Linux: 0 Mac: 1 Windows: 1Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 0 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 0Feb 10 Linux: 0 Mac: 0 Windows: 0Feb 9 Linux: 1 Mac: 0 Windows: 2

Readme

Source
raw.​githubusercontent.​com

Sublime Text Support for the V Programming Language

This bundle provides V syntax highlighting for Sublime Text.

Installation

You can install the V package with Package Control:

Package Control: Install Package

Package Control: Install Package

For code completion you can install vlang/vls for Sublime Text 3 or 4.

Features

Commands for building, running, testing, formatting and updating V itself:

Command Palette

Inline errors and warnings:

Inline errors and warnings

Quickly goto to any symbol:

Goto any symbol

Show assertion failures inline:

Assert failures

Command Palette

Any commands that generate output will show in a new window called “V”. You may leave this tab open an any future runs will be appended.

V: Build

Build the current module (directory).

V: Build File

Build the current file.

V: Format File

Format the current file.

V: Format Module

Format the current module.

V: Format Project

Format the current project.

V: Run

Execute v run on the current module (directory).

V: Run Test

Execute v run only on the current file.

V: Test

Execute v test only on the current module (directory).

V: Test File

Execute v test only on the current file.

V: Update

Update V to the latest version (v up).

Custom Commands

{
    "caption": "Build Prod",
    "command": "v",
    "args": {
        "cmd": "-prod ${module}",   // required (string)
        "output": true,             // optional (boolean)
    }
},
  • cmd is required and in the example above will construct and execute v -prod "some/folder/path".
  • output is optional (defaults to true). If false, the output is not shown in the “V” window. This is useful for commands you intend to be silent (such as v fmt).

See Sublime Variables for full list, but some common ones are:

  • ${file} for the current file path.
  • ${file_path} for the directory the current file exists in (the module).
  • ${folder} for the project directory.

Contributing

Note: Make sure you uninstall the package if it's already installed with “Package Control > Remove Package…”

Now clone the package locally:

cd ~/Library/Application\ Support/Sublime\ Text/Packages
git clone https://github.com/elliotchance/vlang-sublime.git