|
|
3 tahun lalu | |
|---|---|---|
| .. | ||
| ftdetect | 52f80c25ab Add syntax highlighting for vim and neovim (#1740) | 3 tahun lalu |
| ftplugin | c9855c4e01 Update syntax files for vim (#2039) | 3 tahun lalu |
| syntax | 52f80c25ab Add syntax highlighting for vim and neovim (#1740) | 3 tahun lalu |
| README.md | a4a3cf0136 Create a sync-repos action. (#1863) | 3 tahun lalu |
For Carbon developers using Vim or Neovim, this plugin provides syntax
highlighting for .carbon files found throughout explorer/testdata
This code is developed as part of the Carbon Language project. Everything is then automatically mirrored into a dedicated repository.
If you would like to contribute, please follow the normal Carbon contributing guide and submit pull requests to the main repository.
From the current directory utils/vim, please run the following commands to
install the syntax file.
mkdir -p ~/.vim/syntax && cp syntax/carbon.vim ~/.vim/syntax/
mkdir -p ~/.vim/ftdetect && cp ftdetect/carbon.vim ~/.vim/ftdetect/
Instead of copying to the ~/.vim directory, please use the ~/.config/nvim
directory, or your custom Neovim root directory.
mkdir -p ~/.config/nvim/syntax && cp syntax/carbon.vim ~/.config/nvim/syntax/
mkdir -p ~/.config/nvim/ftdetect && cp ftdetect/carbon.vim ~/.config/nvim/ftdetect/