mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:50:05 +08:00
Add doc for indentmove layer
This commit is contained in:
parent
5e42ce4a0d
commit
9381cb0b5a
@ -1,21 +0,0 @@
|
||||
function! SpaceVim#layers#cursor_move_by_indent#plugins() abort
|
||||
return [
|
||||
\ ['ZSaberLv0/ZFVimIndentMove', { 'merged' : 0}],
|
||||
\ ]
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#cursor_move_by_indent#config() abort
|
||||
nnoremap E <nop>
|
||||
nnoremap EE ``
|
||||
nnoremap EH :call ZF_IndentMoveParent('n')<cr>
|
||||
xnoremap EH :<c-u>call ZF_IndentMoveParent('v')<cr>
|
||||
nnoremap EL :call ZF_IndentMoveParentEnd('n')<cr>
|
||||
xnoremap EL :<c-u>call ZF_IndentMoveParentEnd('v')<cr>
|
||||
nnoremap EK :call ZF_IndentMovePrev('n')<cr>
|
||||
xnoremap EK :<c-u>call ZF_IndentMovePrev('v')<cr>
|
||||
nnoremap EJ :call ZF_IndentMoveNext('n')<cr>
|
||||
xnoremap EJ :<c-u>call ZF_IndentMoveNext('v')<cr>
|
||||
nnoremap EI :call ZF_IndentMoveChild('n')<cr>
|
||||
xnoremap EI :<c-u>call ZF_IndentMoveChild('v')<cr>
|
||||
endfunction
|
||||
|
@ -1,12 +1,12 @@
|
||||
|
||||
|
||||
function! SpaceVim#layers#fold_by_regexp#plugins() abort
|
||||
function! SpaceVim#layers#exprfold#plugins() abort
|
||||
return [
|
||||
\ ['ZSaberLv0/ZFVimFoldBlock', {'merged' : 0}],
|
||||
\ ]
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#fold_by_regexp#config() abort
|
||||
function! SpaceVim#layers#exprfold#config() abort
|
||||
nnoremap ZB q::call ZF_FoldBlockTemplate()<cr>
|
||||
nnoremap ZF :ZFFoldBlock //<left>
|
||||
function! ZF_Plugin_ZFVimFoldBlock_comment() abort
|
43
autoload/SpaceVim/layers/indentmove.vim
Normal file
43
autoload/SpaceVim/layers/indentmove.vim
Normal file
@ -0,0 +1,43 @@
|
||||
""
|
||||
" @section indentmove, indentmove
|
||||
" @parentsection layers
|
||||
" move cursor quickly accorrding to indent
|
||||
"
|
||||
" mappings:
|
||||
" >
|
||||
" Key mode function
|
||||
" EH Normal/vasual move up to nearest line with smaller
|
||||
" indent level
|
||||
" EL Normal/vasual move down to nearest line with larger
|
||||
" indent level
|
||||
" EJ Normal/vasual move down to nearest line with smaller
|
||||
" or same indent level
|
||||
" EK Normal/vasual move down to nearest line with larger
|
||||
" or same indent level
|
||||
" EI Normal/vasual move down to nearest child indent
|
||||
" <
|
||||
"
|
||||
"
|
||||
|
||||
|
||||
function! SpaceVim#layers#indentmove#plugins() abort
|
||||
return [
|
||||
\ ['ZSaberLv0/ZFVimIndentMove', { 'merged' : 0}],
|
||||
\ ]
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#indentmove#config() abort
|
||||
nnoremap <silent> E <nop>
|
||||
nnoremap <silent> EE ``
|
||||
nnoremap <silent> EH :call ZF_IndentMoveParent('n')<cr>
|
||||
xnoremap <silent> EH :<c-u>call ZF_IndentMoveParent('v')<cr>
|
||||
nnoremap <silent> EL :call ZF_IndentMoveParentEnd('n')<cr>
|
||||
xnoremap <silent> EL :<c-u>call ZF_IndentMoveParentEnd('v')<cr>
|
||||
nnoremap <silent> EK :call ZF_IndentMovePrev('n')<cr>
|
||||
xnoremap <silent> EK :<c-u>call ZF_IndentMovePrev('v')<cr>
|
||||
nnoremap <silent> EJ :call ZF_IndentMoveNext('n')<cr>
|
||||
xnoremap <silent> EJ :<c-u>call ZF_IndentMoveNext('v')<cr>
|
||||
nnoremap <silent> EI :call ZF_IndentMoveChild('n')<cr>
|
||||
xnoremap <silent> EI :<c-u>call ZF_IndentMoveChild('v')<cr>
|
||||
endfunction
|
||||
|
@ -24,15 +24,16 @@ CONTENTS *SpaceVim-contents*
|
||||
2. autocomplete..................................|SpaceVim-autocomplete|
|
||||
3. checkers....................................|SpaceVim-layer-checkers|
|
||||
4. colorscheme....................................|SpaceVim-colorscheme|
|
||||
5. lang#c........................................|SpaceVim-layer-lang-c|
|
||||
6. lang#elixir..............................|SpaceVim-layer-lang-elixir|
|
||||
7. lang#go......................................|SpaceVim-layer-lang-go|
|
||||
8. lang#java..................................|SpaceVim-layer-lang-java|
|
||||
9. lang#php....................................|SpaceVim-layer-lang-php|
|
||||
10. lang#python.............................|SpaceVim-layer-lang-python|
|
||||
11. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||
12. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||
13. shell.........................................|SpaceVim-layer-shell|
|
||||
5. indentmove......................................|SpaceVim-indentmove|
|
||||
6. lang#c........................................|SpaceVim-layer-lang-c|
|
||||
7. lang#elixir..............................|SpaceVim-layer-lang-elixir|
|
||||
8. lang#go......................................|SpaceVim-layer-lang-go|
|
||||
9. lang#java..................................|SpaceVim-layer-lang-java|
|
||||
10. lang#php...................................|SpaceVim-layer-lang-php|
|
||||
11. lang#python.............................|SpaceVim-layer-lang-python|
|
||||
12. lang#rust.................................|SpaceVim-layer-lang-rust|
|
||||
13. lang#xml...................................|SpaceVim-layer-lang-xml|
|
||||
14. shell.........................................|SpaceVim-layer-shell|
|
||||
5. FAQ........................................................|SpaceVim-faq|
|
||||
|
||||
==============================================================================
|
||||
@ -427,6 +428,27 @@ colorschemes: if the colorscheme you want do not list below, PR welcome.
|
||||
OceanicNext
|
||||
<
|
||||
|
||||
==============================================================================
|
||||
INDENTMOVE *SpaceVim-indentmove*
|
||||
|
||||
move cursor quickly accorrding to indent
|
||||
|
||||
mappings:
|
||||
>
|
||||
Key mode function
|
||||
EH Normal/vasual move up to nearest line with smaller
|
||||
indent level
|
||||
EL Normal/vasual move down to nearest line with larger
|
||||
indent level
|
||||
EJ Normal/vasual move down to nearest line with smaller
|
||||
or same indent level
|
||||
EK Normal/vasual move down to nearest line with larger
|
||||
or same indent level
|
||||
EI Normal/vasual move down to nearest child indent
|
||||
<
|
||||
|
||||
|
||||
|
||||
==============================================================================
|
||||
LANG#C *SpaceVim-layer-lang-c*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user