mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:20:06 +08:00
Merge pull request #878 from techgaun/msg-updates
fix spellcheck msg & some documentations
This commit is contained in:
commit
5d7135b291
@ -76,7 +76,7 @@ function! SpaceVim#layers#ui#config() abort
|
||||
\ 'toggle syntax checker', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'S'], 'call call('
|
||||
\ . string(s:_function('s:toggle_spell_check')) . ', [])',
|
||||
\ 'toggle syntax checker', 1)
|
||||
\ 'toggle spell checker', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'w'], 'call call('
|
||||
\ . string(s:_function('s:toggle_whitespace')) . ', [])',
|
||||
\ 'toggle the whitespace', 1)
|
||||
@ -202,9 +202,9 @@ function! s:toggle_syntax_checker() abort
|
||||
call SpaceVim#layers#core#statusline#toggle_mode('syntax-checking')
|
||||
let g:_spacevim_toggle_syntax_flag = g:_spacevim_toggle_syntax_flag * -1
|
||||
if g:_spacevim_toggle_syntax_flag == 1
|
||||
echo "syntax-checking enabled."
|
||||
echo 'syntax-checking enabled.'
|
||||
else
|
||||
echo "syntax-checking disabled."
|
||||
echo 'syntax-checking disabled.'
|
||||
endif
|
||||
endfunction
|
||||
|
||||
@ -215,6 +215,11 @@ function! s:toggle_spell_check() abort
|
||||
let &l:spell = 1
|
||||
endif
|
||||
call SpaceVim#layers#core#statusline#toggle_mode('spell-checking')
|
||||
if &l:spell == 1
|
||||
echo 'spell-checking enabled.'
|
||||
else
|
||||
echo 'spell-checking disabled.'
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:toggle_whitespace() abort
|
||||
|
@ -407,7 +407,7 @@ Reminder of the color codes for the states:
|
||||
| Mode | Color |
|
||||
| ------- | ------ |
|
||||
| Normal | Grey |
|
||||
| Insert | Blus |
|
||||
| Insert | Blue |
|
||||
| Visual | Orange |
|
||||
| Replace | Aqua |
|
||||
|
||||
@ -461,7 +461,7 @@ all the colors based on the current colorscheme
|
||||
|
||||
**Statusline separators:**
|
||||
|
||||
It is possible to easily customize the statusline separator by setting the `g:spacevim_statusline_separator` variable in your custon configration file and then redraw the statusline. For instance if you want to set back the separator to the well-known arrow separator add the following snippet to your configuration file:
|
||||
It is possible to easily customize the statusline separator by setting the `g:spacevim_statusline_separator` variable in your custom configration file and then redraw the statusline. For instance if you want to set back the separator to the well-known arrow separator add the following snippet to your configuration file:
|
||||
|
||||
```vim
|
||||
let g:spacevim_statusline_separator = 'arrow'
|
||||
@ -809,7 +809,7 @@ Buffer manipulation commands (start with `b`):
|
||||
|
||||
##### Special Buffers
|
||||
|
||||
In SpaceVim, there are many special buffers, these buffers are created by plugins or SpaceVim isself. and all of this buffers are not listed.
|
||||
In SpaceVim, there are many special buffers, these buffers are created by plugins or SpaceVim itself. And these buffers are not listed.
|
||||
|
||||
##### Files manipulations key bindings
|
||||
|
||||
@ -969,7 +969,7 @@ after pressing prefix `z` in normal mode, if you do not remember the mappings, y
|
||||
| `zO` | open folds recursively |
|
||||
| `zR` | set `foldlevel` to deepest fold |
|
||||
| `zW` | mark wrong spelled |
|
||||
| `zX` | re-apply `foldleve` |
|
||||
| `zX` | re-apply `foldlevel` |
|
||||
| `z^` | cursor to screen bottom line N |
|
||||
| `za` | toggle a fold |
|
||||
| `zb` | redraw, cursor line at bottom |
|
||||
|
Loading…
Reference in New Issue
Block a user