Default to nrepl protocol

This commit is contained in:
Tim Pope 2014-06-29 18:54:07 -04:00
parent 94ff1464a4
commit 5ff2eeae1c

View File

@ -335,6 +335,8 @@ endfunction
function! s:Connect(...) abort
if (a:0 ? a:1 : '') =~# '^\w\+://'
let [proto, arg] = split(a:1, '://')
elseif (a:0 ? a:1 : '') =~# '^\%([[:alnum:].-]\+:\)\=\d\+$'
let [proto, arg] = ['nrepl', a:1]
elseif a:0
return 'echoerr '.string('Usage: :Connect proto://...')
else