2023-04-08 05:20:27 +00:00
|
|
|
if exists('g:loaded_tabby')
|
|
|
|
|
finish
|
|
|
|
|
endif
|
|
|
|
|
let g:loaded_tabby = 1
|
|
|
|
|
|
2023-10-22 06:32:17 +00:00
|
|
|
command! -nargs=* -complete=customlist,tabby#commands#Complete Tabby call tabby#commands#Main(<q-args>)
|
|
|
|
|
silent! execute 'helptags' fnameescape(expand('<sfile>:h:h') . '/doc')
|
2023-04-08 05:20:27 +00:00
|
|
|
|
|
|
|
|
augroup tabby
|
|
|
|
|
autocmd!
|
2023-10-22 06:32:17 +00:00
|
|
|
autocmd VimEnter * call tabby#OnVimEnter()
|
|
|
|
|
autocmd VimLeave * call tabby#OnVimLeave()
|
|
|
|
|
autocmd TextChangedI,CompleteChanged * call tabby#OnTextChanged()
|
|
|
|
|
autocmd CursorMovedI * call tabby#OnCursorMoved()
|
|
|
|
|
autocmd InsertLeave,BufLeave * call tabby#OnInsertLeave()
|
2023-04-08 05:20:27 +00:00
|
|
|
augroup END
|