tree: 8976f03f035f221c36dacdf4949fbeee505ec0ff [path history] [tgz]
  1. fuchsia.vim
  2. README.md
  3. ycm_extra_conf.py
vim/README.md

Helpful VIM tools for Fuchsia development

Features

  • Configure YouCompleteMe to provide error checking, completion and source navigation within the Fuchsia tree.
  • Set path so that :find and gf know how to find files.
  • Fidl syntax highlighting (using /lib/fidl/tools/vim/).

Installation

Make sure env.sh is being called in your login scripts. This code depends on variables set in env.sh and by the fset command.

Add this to your vimrc:

if $FUCHSIA_DIR != ""
  source $FUCHSIA_DIR/scripts/vim/fuchsia.vim
endif

Optionally install YouCompleteMe for fancy completion, source navigation and inline errors.

TODO

In the future it would be nice to support:

  • YCM support for magenta (dbort is looking at this)
  • Fidl indentation
  • GN highlighting and indentation
  • Dart, Go and Rust support
  • Build system integration
  • Navigate between generated files and fidl source