Task:
on key press, lets say <C-G>
print a basic skeleton, e.g.:
99 control '<++>' do
100 impact '<++>'
101 title '<++>'
102 desc '<++>'
103 describe <++>(<++>) do
104
105 end
106 end
There is a tone of info for how to do that on a file creation but I'm not interested in that.
Attempt:
What I've done:
4 set nocompatible
5 filetype plugin on
6 syntax on
10 inoremap <C-G> control '<++>' do<Esc>"_o<Space><Space>impact '<++>'<Esc>"_o<Space><Space>title<Space>'<++>'<Esc>"_o<Space><Space>desc<Space>'<++>'<Esc>"
_o<Space><Space>describe<Space><++>(<++>)<Space>do<Esc>"_o<Esc>"_o <Space><Space>end<Esc>"_o end
Question:
It works but it's ugly. Is there a way to do it better?