Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zakuro9715/vim-vtools

v language tools for vim
https://github.com/zakuro9715/vim-vtools

v vim vim-plugin vim-plugins vlang

Last synced: 2 months ago
JSON representation

v language tools for vim

Awesome Lists containing this project

README

        

# V tools for vim

[V](https://github.com/vlang/v") tools for Vim, including auto formatting.

## Usage

```
:w
```

## Installation

You can install with your favorite plugin manager

[dein.vim](https://github.com/Shougo/dein.vim)

```viml
dein#add('zakuro9715/vim-vtools')
```

[vim-plug](https://github.com/junegunn/vim-plug)

```viml
Plug 'zakuro9715/vim-vtools'
```

## Commands

- VFmt: v fmt buffer
- VTest:
- if current file is `_test.v`, v test buffer
- if `{current_file}_test.v` exists, v test it.
- else v test file_dir
- VRun: v run buffer
- VVet: v vet buffer
- VImport xxx: Insert `import xxx`

## Configuration

```viml
" enable auto format when write. (defaut)
let g:vfmt = 1
" disable auto format.
let g:vfmt = 0

" use vls to format (require vim-lsp and vls)
let g:vtools_use_vls = 1
```