diff --git a/plugin/split-term.vim b/plugin/split-term.vim index 6eab3bb..d4d1944 100644 --- a/plugin/split-term.vim +++ b/plugin/split-term.vim @@ -75,7 +75,12 @@ fun! s:openTerm(args) exe 'set shell =' . s:default_shell endif - exe 'terminal' a:args + if has('nvim') + exe 'terminal' a:args + else + exe 'terminal ++curwin' a:args + endif + exe 'startinsert' if s:map_keys call s:defineMaps()