tree: 8ca3ed6834bf4ec64a2061529ecd65594847c6ce [path history] [tgz]
  1. autoload/
  2. ftdetect/
  3. ftplugin/
  4. syntax/
  5. gn-format.py
  6. README.md
misc/vim/README.md

GN vim syntax plugin

Installation with a plugin manager

You can use modern plugin managers to download the GN repo and manage the vim plugin:

Example config for vim-plug:

Plug 'https://gn.googlesource.com/gn', { 'rtp': 'misc/vim' }

Or, for Vundle users:

Plugin 'https://gn.googlesource.com/gn', { 'rtp': 'misc/vim' }

Manual installation

If you don't use a plugin manager or would prefer to manage the GN repo yourself, you can add this explicitly to rtp in your .vimrc:

set runtimepath+=/path/to/gn/misc/vim
" ...
filetype plugin indent on " or a similar command to turn on filetypes in vim