Any help, suggestions are appreciated.
Thanks.
Yes it is! Have a look at `:h complete` and `:h compl-functions`. They should get you pointed in the right direction. :)
Thanks Tumbler.
I started working on it. The Help had a example that I could work with.
inoremap <F5> <C-R>=ListMonths()<CR>
func! ListMonths()
call complete(col('.'),
['January
New line', 'February', 'March',
\ 'April', 'May', 'June', 'July', 'August', 'September',
\ 'October', 'November', 'December'])
return ''
endfunc
Is it possible to have completion triggers snippet with multiple lines? For example,
F5 > January will put
First Month.
January.
Something like that. Is it possible?
You're asking if a completion suggestion can be multiple
lines/have new-lines in them? I'm not the definitive
source on this, but I don't think so. I tried all line
breaking methods I could think of and none of them worked.
Unfortunately for you, I think it's designed as line by
line kind of a thing, sorry.
Regards,
~Tumbler
I am looking into that. I am beginner/intermediate level of Vim user. And I find it really hard to add my own custom snippet in the mu-template. Can you give me some ideas of how to add simple snippets.
For example
-----------
I would like to add the following for the trigger `openr`.
OPENR, unit, filename, /GET_LUN
cursor here
CLOSE, unit
FREE_LUN, unit
Thank you. I installed the plugin. But I can't get it to work.
I have attached the error. I have followed the direction and got all the plugins (as shown below).
git clone g...@github.com:LucHermitte/lh-vim-lib.git
git clone g...@github.com:LucHermitte/lh-tags.git
git clone g...@github.com:LucHermitte/lh-dev.git
git clone g...@github.com:LucHermitte/lh-brackets.git
git clone g...@github.com:LucHermitte/searchInRuntime.git
git clone g...@github.com:LucHermitte/mu-template.git
Thanks.
Thanks. I updated it and it is working. I will test and will let you know.
Thanks again.