-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Vim 9.0 colorscheme support - no syntax highlighting #245
Comments
@richeney I was looking for a solution for exactly this! I would prefer to edit with syntax highlighting. Same symptoms - I have a colorscheme (gruvbox) and a filetype (ps1) yet no color. |
Currently CloudShell support supports default vim color scheme. If you want more colors in your shell, please follow the instructions below and install the color schemes you like. Step-1: Create "colors" dir in your homedir. Change cwd to colos dir.
Step-2: Perform wget on the color scheme that you are interested in. Showing an example for lunaperche colors cheme to install. Start using installed color schemes in your vim. |
I should have mentioned that I am comfortably using .vim file. (I created my own cloudshell colorscheme to match the standard colours, which I install using an Ansible role.) The issue with the Cloud Shell image is that there is
WSL running jammy
Cloud Shell in Windows Terminal
Cloud Shell in the browser
@hima-gadupudi, would you reopen the issue? |
Lack of syntax highlighting support in Azure Cloud Shell's vim is still an issue. |
#384 proposes adding the vim-extra package to the Cloud Shell base image to resolve this issue. In the interim, one could manually install vim runtime files in their Cloud Shell home directory as described at https://www.vim.org/runtime.php. I'm familiar with vim / runtime version compatibility guarantees; if one wants to install the version of the runtime associated with their exact version of vim, the instructions could be adapted thus: $ vim --version | head -n 2
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar 1 2024 01:01:28)
Included patches: 1-2121
$ VIMVERSION=$(vim --version | awk 'NR==1 {v=$5; FS="-"} NR == 2 {t=$2} END {print v "." t}')
$ echo $VIMVERSION
9.0.2121
$ mkdir -p ~/.vim
$ wget -O - https://github.com/vim/vim/archive/refs/tags/v${VIMVERSION}.tar.gz | tar -C ~/.vim -xzf - vim-${VIMVERSION}/runtime/ --strip-components=2 |
Vim has recently been updated to v9.0 in the image. The coloured syntax highlighting is not working for me and vim is monochrome.
Vim is recognising the filetypes correctly (
:set filetype?
). Looking at the colorscheme support (:colorscheme
,CTRL
+D
), there is only desert in there.I installed vim 9.0 into Ubuntu on WSL2 and colorscheme support was fine there.
Is there something that needs to be done to add the colorscheme support back in for the container?
The text was updated successfully, but these errors were encountered: