Dart Support for Vim
dart-vim-plugin provides filetype detection, syntax highlighting, and indentation for Dart code in Vim.
Looking for an IDE experience? See the Dart Tools page..
You need to install pathogen.vim
in order to install and user dart-vim-plugin. Pathogen makes it super easy
to install plugins and runtime files under
~./vim/bundle or in their own
Make a directory.
mkdir -p ~/.vim/bundle
Clone a repository.
cd ~/.vim/bundle git clone https://github.com/dart-lang/dart-vim-plugin
Put following codes in your
if has('vim_starting') set nocompatible set runtimepath+=~/.vim/bundle/dart-vim-plugin endif filetype plugin indent on
You can use following vim commands: