Just a quick comment - It should rather read:

```python
if 'command' not in vi_cmd_data['motion']:
```

However, I don't understand why this is needed and it looks like an issue on its own.