Use feedkeys for Neovim mode and fix bug with @end directive

This should fix the previous escaping problems