vhda / verilog_systemverilog.vim

Verilog/SystemVerilog Syntax and Omni-completion
359 stars 86 forks source link

Use shiftwidth function if available #212

Closed peterfab9845 closed 1 year ago

peterfab9845 commented 1 year ago

The shiftwidth() function, implemented in Vim 7.3.694, allows an effective 'shiftwidth' value to be determined based on 'tabstop' when the 'shiftwidth' setting is 0. When the 'shiftwidth' setting is nonzero, shiftwidth() returns the configured value as normal. This PR uses the new function if it is available.

vhda commented 1 year ago

Thanks for your contribution.