mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 07:23:49 -05:00
improve README.md
This commit is contained in:
39
README.md
39
README.md
@@ -86,7 +86,7 @@ MIT License
|
|||||||
## Configuration tutorial
|
## Configuration tutorial
|
||||||
In default, the statusline looks like:
|
In default, the statusline looks like:
|
||||||

|

|
||||||
If you want a colorscheme which looks well with the wombat colorscheme, add the following setting to your .vimrc (or \_vimrc on Windows):
|
If you use the wombat colorscheme, add the following setting to your .vimrc (or \_vimrc on Windows):
|
||||||
```vim
|
```vim
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
\ 'colorscheme': 'wombat',
|
\ 'colorscheme': 'wombat',
|
||||||
@@ -127,6 +127,43 @@ let g:lightline = {
|
|||||||
Hurrah! Cool!
|
Hurrah! Cool!
|
||||||
|
|
||||||
|
|
||||||
|
If your vim looks like:
|
||||||
|

|
||||||
|
the patched font is not installed.
|
||||||
|
|
||||||
|
There are two kinds of font looks nice:
|
||||||
|
|
||||||
|
+ The patched font for [vim-powerline](https://github.com/Lokaltog/vim-powerline): see https://github.com/Lokaltog/vim-powerline/tree/develop/fontpatcher
|
||||||
|
+ The patched font for [powerline](https://github.com/Lokaltog/powerline): see https://github.com/Lokaltog/powerline-fonts
|
||||||
|
|
||||||
|
This tutorial is based on the former, the font for vim-powerline.
|
||||||
|
If you installed the patched font for powerline, use the following settings instead.
|
||||||
|
```vim
|
||||||
|
let g:lightline = {
|
||||||
|
\ 'colorscheme': 'wombat',
|
||||||
|
\ 'component': {
|
||||||
|
\ 'readonly': '%{&readonly?"":""}',
|
||||||
|
\ },
|
||||||
|
\ 'separator': { 'left': '', 'right': '' },
|
||||||
|
\ 'subseparator': { 'left': '', 'right': '' }
|
||||||
|
\ }
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
If you will not install a patched font, use the setting like:
|
||||||
|
```vim
|
||||||
|
let g:lightline = {
|
||||||
|
\ 'colorscheme': 'wombat',
|
||||||
|
\ 'component': {
|
||||||
|
\ 'readonly': '%{&readonly?"x":""}',
|
||||||
|
\ },
|
||||||
|
\ 'separator': { 'left': '', 'right': '' },
|
||||||
|
\ 'subseparator': { 'left': '|', 'right': '|' }
|
||||||
|
\ }
|
||||||
|
```
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
Now, you look into a help file to find the marks annoying.
|
Now, you look into a help file to find the marks annoying.
|
||||||
Help files are read-only and no-modifiable? We know that!
|
Help files are read-only and no-modifiable? We know that!
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user