Skip to content

VIM handy macros

Simone Ruffini edited this page Sep 9, 2021 · 2 revisions

Refactor code with VSG

run this in command mode in vim

let @f=":w | exe '! scripts/vsg/vhdl_linter.sh %:p fix' | e!"

Then to format the code, in normal mode press @f and then press enter.

If there is a syntax error and VSG halts press Ctrl+c inside the context window to resume.

Clone this wiki locally