Why this `mapcheck('/') == ''` check? That makes it very fragile. I presume you are assuming that the alternative is `map / /\v`; this is very dangerous: it may well not be the case. This sort of thing is why you should use `noremap` rather than `map`. (That means doing things like expanding the [[ in the ]] mapping manually—very well, that's what needs to be done to make it robust.)