V tools for Vim, including auto formatting.
:w
You can install with your favorite plugin manager
dein#add('zakuro9715/vim-vtools')
Plug 'zakuro9715/vim-vtools'
- 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
- if current file is
- VRun: v run buffer
- VVet: v vet buffer
- VImport xxx: Insert
import xxx
" 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