tree: 0150f920a939d34893bf8c7a7646e8e55feb22b7 [path history] [tgz]
  2. autoload/
  3. ftdetect/
  4. ftplugin/
  6. syntax/

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 '', { 'rtp': 'tools/gn/misc/vim' }

Or, for Vundle users:

Plugin '', { 'rtp': 'tools/gn/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/src/tools/gn/misc/vim
" ...
filetype plugin indent on " or a similar command to turn on filetypes in vim