-
I am using skeleton files to template certain filetype files. I would like to move these to use miniSnip functionality for vimscript evaluation. Is it possible to trigger a certain snippet from an |
Beta Was this translation helpful? Give feedback.
Answered by
Jorenar
Dec 2, 2020
Replies: 1 comment
-
Yes, it is possible by combining autocmd BufNewFile *.c exec "norm! i" . 'hello' . "\<C-r>=miniSnip#trigger()\<CR>" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Jorenar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it is possible by combining
:h :normal
and:h i_CTRL-R_=
. For example, to insert snippethello
into C file: