From 088646a9b18249e04608a23132de4b4a961e9eff Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 9 Mar 2019 13:44:15 +0100 Subject: [PATCH 1/7] Add the new syntax name groups to CHANGELOG.md It adds a section in the CHANGELOG.md describing the addition of the syntax group named Cursor and lCursor. --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9d63d9..5920926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ project adheres to [Semantic Versioning]. # [Unreleased] +### Added + +- Add the highlight for the default syntax group names Cursor and lCursor. + Those are basically the opposite of Normal. + ### Changed - The color named violet associated to the constants has been changed because From 9d4da450b0beb26acb2e94ecb369556646abc336 Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 9 Mar 2019 13:49:23 +0100 Subject: [PATCH 2/7] Adjust the constants color The hue of the constant color has been moved to 95 to make it more yellowish. --- CHANGELOG.md | 8 ++++---- colors/odyssey.vim | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5920926..ad2d013 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,10 +17,10 @@ project adheres to [Semantic Versioning]. The violet color is removed, and the yellow-green color is added. - | Color | Name | Main usage | Hue | Saturation | Value | - | ------- | ---------------- | ----------------- | --- | ---------- | ----- | - | #8ab362 | yellow-green | Constant | 110 | 45 | 70 | - | #6270b3 | ~~violet~~ | Constant | 230 | 45 | 70 | + | Color | Name | Main usage | Hue | Saturation | Value | + | ----------- | ---------- | ----------------- | --- | ---------- | ----- | + | #add590 | yellow | Constant | 95 | 45 | 70 | + | ~~#6270b3~~ | ~~violet~~ | Constant | 230 | 45 | 70 | - The highlight for MatchParen has been modified. In fact, when the cursor is over a parenthese, a bracket, a brace, and so on, the matching element turns diff --git a/colors/odyssey.vim b/colors/odyssey.vim index a1b59c6..563aaa3 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -139,7 +139,7 @@ let s:colors.error = s:colorize( 0, 45, 70) let s:colors.warning = s:colorize( 30, 45, 70) let s:colors.procedure = s:colorize(140, 45, 70) let s:colors.type = s:colorize(200, 45, 70) -let s:colors.constant = s:colorize(110, 45, 70) +let s:colors.constant = s:colorize( 95, 45, 70) " }}} " Highlight Utilities {{{ From 770ffc787760374b7dccc59177c09d1431cfca11 Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 9 Mar 2019 13:50:23 +0100 Subject: [PATCH 3/7] Change the script version to 0.2.0 --- colors/odyssey.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colors/odyssey.vim b/colors/odyssey.vim index 563aaa3..15abe97 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -14,7 +14,7 @@ " " Maintainer: Ludovic Koenig " License: MIT -" Release: 0.1.0 +" Release: 0.2.0 " Initialisation {{{ if !has('gui_running') From 896ccf1982d69abed357af2d69ce662c98c355df Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 9 Mar 2019 14:01:07 +0100 Subject: [PATCH 4/7] Update the CHANGELOG.md file It modifies the hexacode of the constants color and adds the fact that 256-color terminals are supported. --- CHANGELOG.md | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad2d013..6bd22c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,26 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning]. -# [Unreleased] +# [0.2.0] - 2019-03-09 ### Added +- Add support for 256-colors terminal. + + + If 256-colors are required, the following must be used in `.vimrc`: + + ```vim + set termguicolors + colorscheme odyssey + ``` + + + If 24-bits colors are required, the following must be used `.vimrc`: + + ```vim + set t_Co=256 + colorscheme odyssey + ``` + - Add the highlight for the default syntax group names Cursor and lCursor. Those are basically the opposite of Normal. @@ -59,14 +75,15 @@ project adheres to [Semantic Versioning]. and it must be set on. In other words, the color scheme must be used as followed. - ```vim - set termguicolors - colorscheme odyssey - ``` + ```vim + set termguicolors + colorscheme odyssey + ``` + A ISO-8613-3 compatible terminal is required. + Otherwise, a GUI version of Vim must be used. -[Unreleased]: https://github.com/ludokng/vim-odyssey/compare/0.1.0...HEAD +[Unreleased]: https://github.com/ludokng/vim-odyssey/compare/0.2.0...HEAD +[0.2.0]: https://github.com/ludokng/vim-odyssey/compare/0.1.0...0.2.0 [Semantic Versioning]: https://semver.org/spec/v2.0.0.html From 24b738b4e078334a2433a35d20ae6d1efde23d71 Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 9 Mar 2019 14:02:08 +0100 Subject: [PATCH 5/7] Modify the README.md for installation purposes It is now described how to use 256-colors or 24-bits colors. --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index baf59d4..151379d 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,20 @@ After having installed [pathogen.vim], clone the repository under ### Updating the `./vimrc` Add the following to the `./vimrc` file. - ```vim - set termguicolor - colorscheme odyssey - ``` + + + If 256-colors are required, the following lines must be used: + + ```vim + set termguicolors + colorscheme odyssey + ``` + + + If 24-bits colors are required, the following lines must be used: + + ```vim + set t_Co=256 + colorscheme odyssey + ``` ## License From efa931dcca067fd37436d27e60e0c798df441a1e Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 9 Mar 2019 14:09:03 +0100 Subject: [PATCH 6/7] Correct some explainations It uses the notion of 8-bits colors to describe the space of xterm 256 colors. --- CHANGELOG.md | 2 +- README.md | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bd22c5..22221ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ project adheres to [Semantic Versioning]. - Add support for 256-colors terminal. - + If 256-colors are required, the following must be used in `.vimrc`: + + If 8-bits colors are required, the following must be used in `.vimrc`: ```vim set termguicolors diff --git a/README.md b/README.md index 151379d..a7ba30b 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,22 @@ After having installed [pathogen.vim], clone the repository under Add the following to the `./vimrc` file. - + If 256-colors are required, the following lines must be used: + + For GUI versions of Vim: + + ```vim + colorscheme odyssey + ``` + + + For terminals that support true color, if 24-bits colors are required, the + following lines must be used: ```vim set termguicolors colorscheme odyssey ``` - + If 24-bits colors are required, the following lines must be used: + + For terminals that support 256-colors, if 8-bits colors are required, the + following lines must be used: ```vim set t_Co=256 From c0f891fd55452601d0c4526e3c53c60d63d3aa9d Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 9 Mar 2019 14:13:37 +0100 Subject: [PATCH 7/7] Fix the section 0.2.0 in CHANGELOG.md This section was not a subtitle of the form '##'. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22221ab..392de03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning]. -# [0.2.0] - 2019-03-09 +## [0.2.0] - 2019-03-09 ### Added