In addition to @sidyll's answer:: :normal not :*map , it only accepts raw character strings. The correct command would be execute "normal! :TlistToggle\<CR>" (or execute "normal! :TlistToggle\n" ). Please note that you should not use the version without changes in your scripts.
I do not think you have ever used :normal! to execute the ex command, but my answer would be useful when you want to pass any other special character. This also applies to calling feedkeys() .
By the way, comments and other commands will be considered part of the line passed to the command :normal .
source share