Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 819 Bytes

README.md

File metadata and controls

48 lines (34 loc) · 819 Bytes

V tools for vim

V tools for Vim, including auto formatting.

Usage

:w

Installation

You can install with your favorite plugin manager

dein.vim

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

vim-plug

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

" 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