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 28, 2023
1 parent d2abd15 commit 20d08a2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 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 22.04 which contains `vim-nox` at `v8.2.3995`.

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

Expand Down Expand Up @@ -417,7 +417,7 @@ that are conservatively turned off by default that you may want to turn on.

### Linux 64-bit

The following assume you're using Ubuntu 20.04.
The following assume you're using Ubuntu 22.04.

#### Quick start, installing all completers

Expand Down Expand Up @@ -1088,7 +1088,7 @@ On supported architectures, the `install.py` script will download a suitable
clangd (`--clangd-completer`) or libclang (`--clang-completer`) for you.
Supported architectures are:

* Linux glibc >= 2.31 (Intel, armv7-a, aarch64) - built on ubuntu 20.04
* Linux glibc >= 2.31 (Intel, armv7-a, aarch64) - built on ubuntu 22.04
* MacOS >=10.15 (Intel, arm64)
- For Intel, compatibility per clang.llvm.org downloads
- For arm64, macOS 10.15+
Expand Down
8 changes: 4 additions & 4 deletions doc/youcompleteme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ Requirements ~
===============================================================================
| _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 |
-------------------------------------------------------------------------------
Expand All @@ -439,7 +439,7 @@ Requirements ~
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 22.04 which contains 'vim-nox' at 'v8.2.3995'.

Vim must have a working Python 3 runtime.

Expand Down Expand Up @@ -639,7 +639,7 @@ that are conservatively turned off by default that you may want to turn on.
*youcompleteme-linux-64-bit*
Linux 64-bit ~

The following assume you're using Ubuntu 20.04.
The following assume you're using Ubuntu 22.04.

-------------------------------------------------------------------------------
Quick start, installing all completers ~
Expand Down Expand Up @@ -1313,7 +1313,7 @@ On supported architectures, the 'install.py' script will download a suitable
clangd ('--clangd-completer') or libclang ('--clang-completer') for you.
Supported architectures are:

- Linux glibc >= 2.31 (Intel, armv7-a, aarch64) - built on ubuntu 20.04
- Linux glibc >= 2.31 (Intel, armv7-a, aarch64) - built on ubuntu 22.04
- MacOS >=10.15 (Intel, arm64)
- For Intel, compatibility per clang.llvm.org downloads
- For arm64, macOS 10.15+
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.3995, 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( 'patch3995' )) ) &&
\ !s:is_neovim
echohl WarningMsg |
\ echomsg "YouCompleteMe unavailable: requires Vim 8.1.2269+." |
\ echomsg "YouCompleteMe unavailable: requires Vim 8.2.3995+." |

Check warning on line 37 in plugin/youcompleteme.vim

View check run for this annotation

Codecov / codecov/patch

plugin/youcompleteme.vim#L37

Added line #L37 was not covered by tests
\ echohl None
call s:restore_cpo()
finish
Expand Down
4 changes: 2 additions & 2 deletions test/docker/ci/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL C.UTF-8

ARG VIM_VERSION=v8.2.2735
ARG VIM_VERSION=v9.0.0214
ARG YCM_VIM_PYTHON=python3
ARG NODE_MAJOR=18

Expand Down

0 comments on commit 20d08a2

Please sign in to comment.