1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
" Copyright 2010-present Greg Hurrell. All rights reserved.
" Licensed under the terms of the BSD 2-clause license.
if exists('g:command_t_loaded') || &compatible
finish
endif
let g:command_t_loaded = 1
command! -nargs=+ CommandTOpen call commandt#GotoOrOpen(<q-args>)
if empty(&switchbuf)
set switchbuf=usetab
endif
" HACK: use both old and new during early development
if has('patch-7-4-1829') && get(g:, 'CommandTEngine', 'mirkwood') ==? 'isengard'
call commandt#isengard#init()
endif
call commandt#mirkwood#init()
finish
if has('patch-7-4-1829') && get(g:, 'CommandTEngine', 'isengard') ==? 'isengard'
call commandt#isengard#init()
else
call commandt#mirkwood#init()
endif
|