Skip to content

Commit

Permalink
Update minimum vim version
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Dec 26, 2023
1 parent 7a87944 commit 190c96e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ Installation

| Runtime | Min Version | Recommended Version (full support) | Python |
|---------|-------------|------------------------------------|--------|
| Vim | 8.1.2269 | 9.0.214 | 3.8 |
| Vim | 8.2.3995 | 9.0.214 | 3.8 |
| Neovim | 0.5 | Vim 9.0.214 | 3.8 |

#### Supported Vim Versions

Our policy is to support the Vim version that's in the latest LTS of Ubuntu.
That's currently Ubuntu 20.04 which contains `vim-nox` at `v8.1.2269`.
That's currently Ubuntu 20.04 which contains `vim-nox` at `v8.2.3995`.

Vim must have a [working Python 3 runtime](#supported-python-runtime).

Expand Down
6 changes: 3 additions & 3 deletions plugin/youcompleteme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ function! s:restore_cpo()
unlet s:save_cpo
endfunction

" NOTE: The minimum supported version is 8.1.2269, but neovim always reports as
" NOTE: The minimum supported version is 8.2.3395, but neovim always reports as
" v:version 800, but will largely work.
let s:is_neovim = has( 'nvim' )

if exists( "g:loaded_youcompleteme" )
call s:restore_cpo()
finish
elseif ( v:version < 801 || (v:version == 801 && !has( 'patch2269' )) ) &&
elseif ( v:version < 802 || (v:version == 802 && !has( 'patch3395' )) ) &&
\ !s:is_neovim
echohl WarningMsg |
\ echomsg "YouCompleteMe unavailable: requires Vim 8.1.2269+." |
\ echomsg "YouCompleteMe unavailable: requires Vim 8.1.3395+." |
\ echohl None
call s:restore_cpo()
finish
Expand Down
2 changes: 1 addition & 1 deletion test/docker/ci/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL C.UTF-8
Expand Down

0 comments on commit 190c96e

Please sign in to comment.