reverted vimscript to @waedt version