Skip to content

Commit 7a35ba5

Browse files
authored
Update README for modern vim ecosystem; fix lightline example (#87)
Listing existing plugins is superfluous, as their users know them. Some of the listed ones are no longer maintained. vim-plug (and maybe dein.vim) appear to be the most popular ones, and the former is what most projects use in examples. The lightline example is slightly changed, as the `g:lightline` variable cannot be assumed to exist.
1 parent 0cb1197 commit 7a35ba5

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

vim/README.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,35 @@ NeoVim + Tmux with true colors on iTerm2.
66
## Installation
77
### Using a plugin manager (recommended)
88

9-
Use [Pathogen](http://github.com/tpope/vim-pathogen),
10-
[Vundle](http://github.com/gmarik/vundle),
11-
[Neobundle](http://github.com/Shougo/neobundle.vim) or your favourite Vim
12-
package manager.
9+
vim-plug:
1310

14-
To install with Vundle, put
15-
16-
Plugin 'sonph/onehalf', {'rtp': 'vim/'}
11+
```
12+
Plug 'sonph/onehalf', { 'rtp': 'vim' }
13+
```
1714

18-
in your `.vimrc`, restart vim then execute `:PluginInstall`. This will install
19-
both the color schemes and vim-airline themes.
15+
The 'rtp' option is necessary as the vim theme resides in a subdirectory of the git repo.
2016

2117
### Manual Installation
2218
Download the files in [vim/](./) and put them in their respective folders
2319
(`./vim/colors/` and `./vim/autoload/airline/themes/`)
2420

2521
## Usage
2622
Put `colorscheme <scheme>` and `let g:airline_theme='<theme>'`, if using airline
27-
or `let g:lightline.colorscheme='<theme>'`, if using lightline, in your `.vimrc`
23+
or `let g:lightline = { 'colorscheme': '<theme>' }`, if using lightline, in your `.vimrc`
2824
to set the color scheme and airline (or lightline) theme. Make sure you have
2925
syntax highlighting on, and 256 colors set. Vim version >= 7.4 recommended.
3026

3127
For example:
3228

33-
syntax on
34-
set t_Co=256
35-
set cursorline
36-
colorscheme onehalflight
37-
let g:airline_theme='onehalfdark'
38-
" lightline
39-
" let g:lightline.colorscheme='onehalfdark'
40-
29+
```
30+
syntax on
31+
set t_Co=256
32+
set cursorline
33+
colorscheme onehalflight
34+
let g:airline_theme='onehalfdark'
35+
" lightline
36+
" let g:lightline = { 'colorscheme': 'onehalfdark' }
37+
```
4138

4239
### True Colors
4340
By default vim only allows specifying one of the 256 (8 bit) predefined colors

0 commit comments

Comments
 (0)