https://github.com/ollykel/v-vim
Support for V syntax highlighting in Vim
https://github.com/ollykel/v-vim
Last synced: 2 months ago
JSON representation
Support for V syntax highlighting in Vim
- Host: GitHub
- URL: https://github.com/ollykel/v-vim
- Owner: ollykel
- Created: 2019-06-13T23:21:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T11:39:10.000Z (almost 2 years ago)
- Last Synced: 2025-04-13T05:35:08.676Z (11 months ago)
- Language: Vim script
- Size: 34.2 KB
- Stars: 177
- Watchers: 4
- Forks: 22
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
- awesome-v - v-vim - Support for V syntax highlighting in Vim. (Other / Editor plugins)
README
# Support for V in Vim
The files in this repository provide support for the [v programming language](https://vlang.io) in Vim.
## Installation
### Using a Plugin Manager
You can install V support with a vim plugin manager as usual, for example with [Plug](https://github.com/junegunn/vim-plug):
```vim
Plug 'ollykel/v-vim'
```
Reload config (or save & exit vim/neovim), then:
```vim
:PlugInstall
```
## Options
You can add any of the following into your vim config to disable highlighting.
The following options are enabled by default:
```vim
" Disable highlight white space after "[]".
let g:v_highlight_array_whitespace_error = 0
" Disable highlight white space around the communications operator that don't follow the standard style.
let g:v_highlight_chan_whitespace_error = 0
" Disable highlight instances of tabs following spaces.
let g:v_highlight_space_tab_error = 0
" Disable highlight trailing white space.
let g:v_highlight_trailing_whitespace_error = 0
" Disable highlight function calls.
let g:v_highlight_function_calls = 0
let g:v_highlight_fields = 0
```
You can add any of the following to your vim config to enable aditional options.
The following options are disabled by default:
```vim
" Enable automatically formatting file via "v fmt -" before writing buffer.
let g:v_autofmt_bufwritepre = 1
```