mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-14 06:23:51 -05:00
improve README.md
This commit is contained in:
@@ -57,7 +57,7 @@ landscape is my colorscheme, which is a high-contrast cui-supported colorscheme,
|
|||||||
## Spirit of this plugin
|
## Spirit of this plugin
|
||||||
+ Minimalism. The core script is very small.
|
+ Minimalism. The core script is very small.
|
||||||
+ Configurability. You can create your own component and easily add to the statusline.
|
+ Configurability. You can create your own component and easily add to the statusline.
|
||||||
+ Orthogonality. Any plugin should not change the settings of another plugin. Such a plugin-crossing setting should be written by users in `.vimrc`.
|
+ Orthogonality. Any plugin should not change the settings of another plugin. Such plugin-crossing settings should be written by users in `.vimrc`.
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
itchyny (https://github.com/itchyny)
|
itchyny (https://github.com/itchyny)
|
||||||
@@ -86,7 +86,7 @@ MIT License
|
|||||||
## Configuration tutorial
|
## Configuration tutorial
|
||||||
In default, the statusline looks like:
|
In default, the statusline looks like:
|
||||||

|

|
||||||
If you use the wombat colorscheme, add the following setting to your `.vimrc` (or \_vimrc on Windows):
|
If you use the wombat colorscheme, add the following settings to your `.vimrc` (or \_vimrc on Windows):
|
||||||
```vim
|
```vim
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
\ 'colorscheme': 'wombat',
|
\ 'colorscheme': 'wombat',
|
||||||
@@ -99,7 +99,7 @@ You may think that the default read-only mark is not so cool:
|
|||||||

|

|
||||||
Then edit the read-only component.
|
Then edit the read-only component.
|
||||||
The lightline components are stored in `g:lightline.component`.
|
The lightline components are stored in `g:lightline.component`.
|
||||||
So you add the setting of `g:lightline.component.readonly` in your `.vimrc`. (the following setting is effective with the patched font for vim-powerline):
|
So you add the settings of `g:lightline.component.readonly` in your `.vimrc`. (the following settings is effective with the patched font for vim-powerline):
|
||||||
```vim
|
```vim
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
\ 'colorscheme': 'wombat',
|
\ 'colorscheme': 'wombat',
|
||||||
@@ -509,7 +509,7 @@ I show my settings. I use the patched font for vim-powerline.
|
|||||||
return winwidth('.') > 60 ? lightline#mode() : ''
|
return winwidth('.') > 60 ? lightline#mode() : ''
|
||||||
endfunction
|
endfunction
|
||||||
```
|
```
|
||||||
When the window width is too narrow, the mode component and the file information component collapse.
|
When the current window width is narrow, the mode component and the file information component collapse.
|
||||||
For example, the [gundo](https://github.com/sjl/gundo.vim) buffer is narrow.
|
For example, the [gundo](https://github.com/sjl/gundo.vim) buffer is narrow.
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|||||||
Reference in New Issue
Block a user