Fire autocommand on IPyConnect#17
Fire autocommand on IPyConnect#17miseran wants to merge 1 commit intobfredl:masterfrom miseran:autocommand
Conversation
|
I don't think this is very useful as is, because you could just as well define a function that calls function! IpyLaunch(...)
call call("IPyConnect", a:000)
call NvimIPyMappings()
let g:hasipy = 1
endfunction
command! -nargs=* IP :call IpyLaunch(<f-args>)
command! IJ :call IpyLaunch("--kernel", "julia-0.4")
if exists('g:hasipy')
" when reloading nvimrc
call NvimIPyMappings()
endif
what could be useful though, is to fire an autocommand towards the end of |
|
Thanks for your reply. Defining a new command would be an alternative, yes. I may just do it that way. I did consider firing the autocommand at the end of I assume there's no need for me to update the pull request? |
It would be useful if we were able to create mapping or set other options (such as omnifunc) only once IPyConnect is started. With this patch, an autocommand is fired as soon as IPyConnect is run, which allows the user to do just that.
For example,
I hope this is the right place to fire it.