I am using snipmate plugin with vim. How can I write any commands in snipmate snippet that I would be able to write to .vimrc? Like <ESC>
, <leader>
, <cr>
and so on...
I want to be able to write a snippet that imports python debugger, sets trace and then returns to normal mode. I struggle with returning to normal mode. I have no idea how to code it using snipmate.
Basically I would want something like this, however this won't work properly:
snippet pdb
import pdb; pdb.set_trace()<ESC>
This will just add '<ESC>'
at the end, but I want to return to normal mode instead. Is this possible?