From 439e27f49c0ec8455df364fc8c35f132a209ad75 Mon Sep 17 00:00:00 2001 From: Pavel Pertsev Date: Mon, 31 Aug 2015 20:52:05 +0300 Subject: [PATCH] Updated Terminal specific (markdown) --- Terminal-specific.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Terminal-specific.md b/Terminal-specific.md index b7e391a..3fbf0ef 100644 --- a/Terminal-specific.md +++ b/Terminal-specific.md @@ -5,17 +5,25 @@ First of all you should check this screenshot, as how it **shouldn't** look: ### Issues #### 1. Italics is disabled -Most terminals doesn't handle italics right so gruvbox disables italics for terminals by default. But if you're using urxvt or gnome-terminal you should try setting `let g:gruvbox_italic=1` before `colorscheme gruvbox` to force displaying italics +Most terminals doesn't handle italics right so gruvbox disables italics for terminals by default. But if you're using urxvt or gnome-terminal you should try setting `let g:gruvbox_italic=1` *before* `colorscheme gruvbox` to enforce displaying italics #### 2. Colors are off By default gruvbox will act as usual 256-color theme, but colors wouldn't be that vivid due to limitations of 256-palette. Compare the **wrong** screenshot above with README preview or any from the [Gallery](https://github.com/morhetz/gruvbox/wiki/Gallery). The difference isn't edgy, but pretty visible enough (changes in red color and shades of gray should be most noticeable). You could run vim in terminal and GUI version side by side. -There are three possible ways to get right colors at the terminal: +There are four possible ways to get right colors at the terminal: +- using neovim - using 256-color gruvbox palette shellscript - using terminal 16-color base colorscheme - using urxvt-256-xresources -##### a. (Recommended) 256-color gruvbox palette shellscript +##### 0. (Recommended) NVIM_TUI_ENABLE_TRUE_COLOR=1 +Neovim supports true color terminal out of the box with just a single environment variable. No workarounds anymore. +Be sure to check related sources first: +[Neovim + Item2 + Truecolor = Awesome](https://medium.com/@ericclifford/neovim-item2-truecolor-awesome-70b975516849) +[True colour (24 bit) with Neovim, tmux and iTerm2](https://chris.chowie.net/2015/04/19/True-colour-with-neovim-tmux-and-iterm2/) +[Neovim Gets True Color Support in the Terminal](https://www.reddit.com/r/vim/comments/2zpqg2/neovim_gets_true_color_support_in_the_terminal/) + +##### a. 256-color gruvbox palette shellscript Gruvbox contains shellscript ([default](https://github.com/morhetz/gruvbox/blob/master/gruvbox_256palette.sh) and [osx-iterm2](https://github.com/morhetz/gruvbox/blob/master/gruvbox_256palette_osx.sh) versions), which would overload system default 256-color palette with precise gruvbox colors. Try running terminal vim before and after executing this script to feel the difference. To avoid the necessity of reexecuting it each time you're opening terminal, you should start this script from .bashrc//.zshrc//.profile either like this: ``` source "$HOME/.vim/bundle/gruvbox/gruvbox_256palette.sh"