refactor: use helper functions to make it easier what we are checking for
refactor: use helper functions to make it easier what we are checking for

pottereric/Vim,AndersenJ/Vim,AndersenJ/Vim,VSCodeVim/Vim,edthedev/Vim,Chillee/VSCodeNeovim,Chillee/VSCodeNeovim,Chillee/Vim,wooyea/Vim,Chillee/VSCodeNeovim,westim/Vim,rufusroflpunch/Vim,VSCodeVim/Vim,pottereric/Vim,rufusroflpunch/Vim,westim/Vim,westim/Vim,edthedev/Vim,wooyea/Vim,Chillee/Vim