use put command check logic which is used in vim-operator-replace