1
0
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:
wsdjeg 2017-02-24 23:17:41 +08:00
parent bdfa90c948
commit 8560811fb9
3 changed files with 24 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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*