Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dart syntax files for Vim 8.1 and later

License

NotificationsYou must be signed in to change notification settings

pr3d4t0r/dart-vim-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dart is an object-oriented, typed, class defined, garbage collected languageused for developing mobile, desktop, web, and back-end applications. Dart usesa C-like syntax derived from C, Java, and JavaScript, with features adoptedfrom Smalltalk, Python, Ruby, and others.

More information about the language and its development environment at theofficialDart Programming Language website.

dart.vim syntax detects and highlights Dart statements, reserved words,type declarations, storage classes, conditionals, loops, interpolated values,and comments. There is no support for idioms from Flutter or any other Dartframework.

Requirements

The installation procedure described here are only required if the syntaxdetection and highlighting from this project have not been merged into the Vimpublic distribution.

Simple requirements:

  1. Dart syntax file(s) for Vim 8.1 and later
  2. $HOME/.vim must exist for local installation

Recommended:

Have Git available for automatic installation / updates to the$HOME/.vimusing thedart4vim command, included with this distribution.

Installation

End-user installation is only required until the Vim team approves merging thisDart syntax project into the main syntax files. Dart syntax highlightingproject maintainers also require manual file handling. This process installsthe files in$HOME/.vim and Dart syntax highlight will be available on anyVim / MacVim / gVim that the user runs.

Express installation

  1. Exit Vim, MacVim, gVim - all Vim instances associated with your user
  2. Execute from the console:
    curl -s https://raw.githubusercontent.com/pr3d4t0r/dart-vim-syntax/master/dart4vim | sh -s install
  3. Openvim example.dart to validate

Automatic installation

  1. Exit Vim, MacVim, gVim - all Vim instances associated with your user
  2. Download thedart4vim bash script
  3. Run the./dart4vim install script
  4. Openvim example.dart to validate

Dart syntax highlight developer installation

  1. Exit Vim, MacVim, gVim - all Vim instances associated with your user
  2. Clone the Dart syntax repository:
    git clone https://github.com/pr3d4t0r/dart-vim-syntax.git dart-vim
  3. Remove any old Dart syntax files already installed in$HOME/.vim
    ./dart4vim remove
  4. Select the Git branch from whence to install the syntax files
  5. Install from the project working directory:
    ./dart4vim quick
  6. Openvim example.dart to validate

Manual installation

  1. Exit Vim, MacVim, gVim - all Vim instances associated with your user
  2. Clone the Dart syntax repository:
    git clone https://github.com/pr3d4t0r/dart-vim-syntax.git dart-vim
  3. Copy the syntax file to the local environment:
    cp dart-vim/syntax/dart.vim ~/.vim/syntax
  4. Then the file detection file:cp dart-vim/ftdetect/dart.vim ~/.vim/ftdetect
  5. And the documentation:cp dart-vim/doc/dart.vim ~/.vim/doc
  6. Openvim example.dart to validate

About

Support: Eugene Ciurana, <dart.syntax AT cime.net>,https://ciurana.eu/pgp orhttps://keybase.io/pr3d4t0r

Updates will be available through this repository and submitted for review tothe Vim team in accordance tohttps://github.com/vim/vim/blob/master/contributing.md

License

Vim is Charityware. dart.vim syntax is Charityware.

© Copyright 2019 by Eugene Ciurana / pr3d4t0r. Licensed under thestandard VIM LICENSE - Vim command:help uganda.txt for details.

About

Dart syntax files for Vim 8.1 and later

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp