Env: prevent 'press enter' prompt in small windows (only Vim)
This commit is contained in:
parent
d14150d22b
commit
23e043cc82
|
@ -799,7 +799,10 @@ function! s:init_env()
|
||||||
let ignore = { 'PWD': 1, 'OLDPWD': 1 }
|
let ignore = { 'PWD': 1, 'OLDPWD': 1 }
|
||||||
|
|
||||||
function! s:get_env()
|
function! s:get_env()
|
||||||
silent execute "normal! :return $\<c-a>')\<c-b>\<c-right>\<right>\<del>split('\<cr>"
|
redir => s
|
||||||
|
silent! execute "norm!:ec$\<c-a>'\<c-b>\<right>\<right>\<del>'\<cr>"
|
||||||
|
redir END
|
||||||
|
return split(s)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:compare_by_key_len(foo, bar)
|
function! s:compare_by_key_len(foo, bar)
|
||||||
|
|
Loading…
Reference in a new issue