mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 15:33:49 -05:00
improve README.md
This commit is contained in:
@@ -69,6 +69,11 @@ MIT License
|
|||||||
### Manually
|
### Manually
|
||||||
1. Put all files under $VIM.
|
1. Put all files under $VIM.
|
||||||
|
|
||||||
|
### Pathogen
|
||||||
|
1. Install with following command
|
||||||
|
|
||||||
|
git clone https://github.com/itchyny/lightline.vim ~/.vim/bundle/lightline.vim
|
||||||
|
|
||||||
### Vundle (https://github.com/gmarik/vundle)
|
### Vundle (https://github.com/gmarik/vundle)
|
||||||
1. Add the following configuration to your `.vimrc`.
|
1. Add the following configuration to your `.vimrc`.
|
||||||
|
|
||||||
@@ -230,7 +235,7 @@ let g:lightline = {
|
|||||||
```
|
```
|
||||||

|

|
||||||
Huh? Weird!
|
Huh? Weird!
|
||||||
The components do not collapse even if it has no information!
|
The components do not collapse even if they have no information!
|
||||||
In order to avoid this situation, you set expressions to `g:lightline.component_visible_condition`, which should become 1 only when the corresponding components have information.
|
In order to avoid this situation, you set expressions to `g:lightline.component_visible_condition`, which should become 1 only when the corresponding components have information.
|
||||||
```vim
|
```vim
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
@@ -254,7 +259,7 @@ Okay. It works nice.
|
|||||||
|
|
||||||
How does lightline decide the components to show in the statusline?
|
How does lightline decide the components to show in the statusline?
|
||||||
It's very simple.
|
It's very simple.
|
||||||
The variable to select components is `g:lightline.active.left` and `g:lightline.active.left`.
|
The variables to select components are `g:lightline.active.left` and `g:lightline.active.left`.
|
||||||
For example, you add the `g:lightline.active.left` in `.vimrc`.
|
For example, you add the `g:lightline.active.left` in `.vimrc`.
|
||||||
```vim
|
```vim
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
|
|||||||
Reference in New Issue
Block a user