Skip to content

zakuro9715/vim-vtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published