Last active
May 7, 2022 15:06
-
-
Save bitcrazed/26429ead29d1729f8251e3cff16c2308 to your computer and use it in GitHub Desktop.
Vim settings for Bash on Windows & Windows Console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set mouse=a | |
syntax enable | |
if &term =~ '256color' | |
" The following two lines solve the BCE issue described here: https://sunaku.github.io/vim-256color-bce.html | |
set term=screen-256color | |
set t_ut= | |
set background=dark | |
" Be sure to store your `<theme>.vim` files in ~/.vim/colors/ | |
colorscheme gruvbox | |
"colorscheme monokai | |
"colorscheme solarized | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @sorenrichenberg - I'd recommend following popular vim docs on how to use 256 colors: https://vim.fandom.com/wiki/256_colors_in_vim, rather than a gist from 2017 for the legacy Console 😜