Skip to content

Instantly share code, notes, and snippets.

@bitcrazed
Last active May 7, 2022 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitcrazed/26429ead29d1729f8251e3cff16c2308 to your computer and use it in GitHub Desktop.
Save bitcrazed/26429ead29d1729f8251e3cff16c2308 to your computer and use it in GitHub Desktop.
Vim settings for Bash on Windows & Windows Console
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
@bitcrazed
Copy link
Author

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 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment