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

|

|
||||||
If you want a wombat colorscheme, add the following setting to your .vimrc (or \_vimrc in Windows):
|
If you want a 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',
|
||||||
@@ -93,7 +93,7 @@ to get:
|
|||||||
|
|
||||||
If you have installed [vim-fugitive](https://github.com/tpope/vim-fugitive), the branch status is automatically available:
|
If you have installed [vim-fugitive](https://github.com/tpope/vim-fugitive), the branch status is automatically available:
|
||||||

|

|
||||||
but you find it annoying! So you add to your .vimrc:
|
but you find it annoying! Then you add to your .vimrc:
|
||||||
```vim
|
```vim
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
\ 'colorscheme': 'wombat',
|
\ 'colorscheme': 'wombat',
|
||||||
@@ -106,7 +106,7 @@ but you find it annoying! So you add to your .vimrc:
|
|||||||
OK. The branch section has been removed.
|
OK. The branch section has been removed.
|
||||||
The `g:lightline.active.left` stands for the components which appear on the left hand side, for the active window.
|
The `g:lightline.active.left` stands for the components which appear on the left hand side, for the active window.
|
||||||
|
|
||||||
You find the read-only mark is not cool:
|
You think that the read-only mark is not so cool:
|
||||||

|

|
||||||
So you add the component setting (the following setting is effective with the patched font for vim-powerline):
|
So you add the component setting (the following setting is effective with the patched font for vim-powerline):
|
||||||
```vim
|
```vim
|
||||||
@@ -186,7 +186,7 @@ In order to avoid this, you set expressions to component\_flag, which becomes 1
|
|||||||
Okay. Works nice.
|
Okay. Works nice.
|
||||||
|
|
||||||
|
|
||||||
However, you may wonder we cannot gather these settings?
|
However, you may wonder we cannot gather these settings.
|
||||||
Or, if you want to do something more complicated?
|
Or, if you want to do something more complicated?
|
||||||
|
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ In fact, the components can be created using functions.
|
|||||||
Fine and readable!
|
Fine and readable!
|
||||||
|
|
||||||
|
|
||||||
Finally, you come up with concatenating the three components:
|
Finally, you come up with concatenating the three components: the read-only mark, the filename and the modified mark.
|
||||||

|

|
||||||
Now you may know what to do.
|
Now you may know what to do.
|
||||||
```vim
|
```vim
|
||||||
|
|||||||
Reference in New Issue
Block a user