Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zakuro9715/vim-vtools
- Owner: zakuro9715
- License: gpl-3.0
- Created: 2020-12-12T08:05:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-02T01:21:11.000Z (over 3 years ago)
- Last Synced: 2024-08-04T01:06:21.027Z (5 months ago)
- Topics: v, vim, vim-plugin, vim-plugins, vlang
- Language: Vim script
- Homepage:
- Size: 27.3 KB
- Stars: 17
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-v - vim-vtools - V tools for Vim, including auto formatting. (Other / Editor plugins)
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
```