mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +08:00
Add doc for operator layer
This commit is contained in:
parent
bdfa90c948
commit
8560811fb9
@ -27,6 +27,10 @@ function! SpaceVim#default#SetOptions() abort
|
||||
set relativenumber
|
||||
set number
|
||||
|
||||
" set fillchar
|
||||
hi VertSplit ctermbg=NONE guibg=NONE
|
||||
set fillchars+=vert:│
|
||||
|
||||
" hide cmd
|
||||
set noshowcmd
|
||||
|
||||
|
@ -1,6 +1,17 @@
|
||||
""
|
||||
" @section operator, layer-operator
|
||||
" @parentsection layers
|
||||
" With this layer, you can confirm that text is yanked correctly and see
|
||||
" yanked text by highlighting.
|
||||
|
||||
function! SpaceVim#layers#operator#plugins() abort
|
||||
let plugins = []
|
||||
call add(plugins, ['kana/vim-operator-user', { 'merged' : 0 }])
|
||||
call add(plugins, ['haya14busa/vim-operator-flashy', { 'merged' : 0 }])
|
||||
return plugins
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#operator#config() abort
|
||||
map y <Plug>(operator-flashy)
|
||||
nmap Y <Plug>(operator-flashy)$
|
||||
endfunction
|
||||
|
@ -37,8 +37,9 @@ CONTENTS *SpaceVim-contents*
|
||||
15. lang#python.............................|SpaceVim-layer-lang-python|
|
||||
16. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||
17. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||
18. shell.........................................|SpaceVim-layer-shell|
|
||||
19. tmux...........................................|SpaceVim-layer-tmux|
|
||||
18. operator...................................|SpaceVim-layer-operator|
|
||||
19. shell.........................................|SpaceVim-layer-shell|
|
||||
20. tmux...........................................|SpaceVim-layer-tmux|
|
||||
5. FAQ........................................................|SpaceVim-faq|
|
||||
|
||||
==============================================================================
|
||||
@ -708,6 +709,12 @@ When editing an xml file, the omni func is xmlcomplete#CompleteTags. You can
|
||||
read the documentation in autoload/xmlcomplete.vim in the vim or neovim
|
||||
runtime directory.
|
||||
|
||||
==============================================================================
|
||||
OPERATOR *SpaceVim-layer-operator*
|
||||
|
||||
With this layer, you can confirm that text is yanked correctly and see yanked
|
||||
text by highlighting.
|
||||
|
||||
==============================================================================
|
||||
SHELL *SpaceVim-layer-shell*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user