@@ -17,8 +17,8 @@ function! vimide#getBundlePath() " {{{
1717endfunction " }}}
1818
1919function ! vimide#setDefaults () " {{{
20- call s: setGlobal (' g:vimide_update_check_period' , 24 * 60 * 60 )
21- call s: setGlobal (' g:vimide_update_channel' , ' ' ) " valid values are production/beta
20+ call s: setGlobal (' g:vimide_update_check_period' , 24 * 60 * 60 ) " check updates once a day
21+ call s: setGlobal (' g:vimide_update_channel' , ' ' ) " valid values are production/beta/dev
2222
2323 call s: setGlobal (' g:vimide_global_enable' , 0 )
2424 call s: setGlobal (' g:vimide_manage_indents' , 1 )
@@ -75,6 +75,7 @@ function! vimide#boot(setGlobal) " {{{
7575 " run update check just once on editor start
7676 if ! s: UPDATE_CHECK_FINISHED
7777 call s: checkUpdates ()
78+ call s: checkSubscription ()
7879 let s: UPDATE_CHECK_FINISHED = 1
7980 endif
8081
@@ -627,3 +628,23 @@ function! s:checkUpdates() " {{{
627628 echo updateOutput
628629 call confirm (" Restart Vim for updated version" )
629630endfunction " }}}
631+
632+ function ! s: checkSubscription () " {{{
633+ let tsFileName = vimide#getRootPath () . " /.seen_subscribe_question"
634+
635+ let seenSubscribeCheck = file_readable (tsFileName)
636+ if seenSubscribeCheck | return | endif
637+
638+ let msg = " Hi! Thank you for trying out Vim-IDE-Elixir.\n " .
639+ \ " Your support is essential for project to stay alive and develop, \n " .
640+ \ " so please take your time and subscribe to mailing list here: \n " .
641+ \ " http://gasparchilingarov.com/vim-ide-updates/ \n " .
642+ \ " \n " .
643+ \ " Also send me your feedback in a few days after you use this plugin, please! \n " .
644+ \ " \n " .
645+ \ " This is one-time message, you can find subscription URL later in README.md."
646+
647+ let answer = confirm (msg)
648+
649+ call writefile ([' ' ], tsFileName, " w" )
650+ endfunction " }}}
0 commit comments