Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.91 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.91 KB

Vim Installation & Usage

screenshot: vim NeoVim + Tmux with true colors on iTerm2.

Installation

Using a plugin manager (recommended)

Use Pathogen, Vundle, Neobundle or your favourite Vim package manager.

To install with Vundle, put

Plugin 'sonph/onehalf', {'rtp': 'vim/'}

in your .vimrc, restart vim then execute :PluginInstall. This will install both the color schemes and vim-airline themes.

Manual Installation

Download the files in vim/ and put them in their respective folders (./vim/colors/ and ./vim/autoload/airline/themes/)

Usage

Put colorscheme <scheme> and let g:airline_theme='<theme>', if using airline or let g:lightline.colorscheme='<theme>', if using lightline, in your .vimrc to set the color scheme and airline (or lightline) theme. Make sure you have syntax highlighting on, and 256 colors set. Vim version >= 7.4 recommended.

For example:

syntax on
set t_Co=256
set cursorline
colorscheme onehalflight
let g:airline_theme='onehalfdark'
" lightline
" let g:lightline.colorscheme='onehalfdark'

If you want to use true colors in terminal vim like in the screenshots, try nvim (with let $NVIM_TUI_ENABLE_TRUE_COLOR=1 or set termguicolors option, depending on your neovim version; see here for more details) and a terminal emulator with true colors support such as iTerm2. For tmux use version 2.2 or newer. You can use this script to test if your terminal/tmux supports true colors or not.

truecolors

Troubleshooting/questions

Feel free to open a new issue if you have questions or trouble getting it to work.