Skip to content

Expanding from an autocmd #13

Answered by Jorenar
eemed asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it is possible by combining :h :normal and :h i_CTRL-R_=. For example, to insert snippet hello into C file:

autocmd BufNewFile *.c exec "norm! i" . 'hello' . "\<C-r>=miniSnip#trigger()\<CR>"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jorenar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #11 on January 15, 2021 23:40.