From b55751be0331a455b539ba56496aed2c8ffe8d22 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 28 Jun 2017 21:36:51 +0800 Subject: [PATCH] Add text manipulation commands example PR --- autoload/SpaceVim/layers/edit.vim | 17 ++++++++++------- docs/documentation.md | 11 +++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/autoload/SpaceVim/layers/edit.vim b/autoload/SpaceVim/layers/edit.vim index b07429a21..3bcca38b8 100644 --- a/autoload/SpaceVim/layers/edit.vim +++ b/autoload/SpaceVim/layers/edit.vim @@ -23,14 +23,14 @@ function! SpaceVim#layers#edit#plugins() abort endfunction function! SpaceVim#layers#edit#config() abort - let g:multi_cursor_next_key='' - let g:multi_cursor_prev_key='' - let g:multi_cursor_skip_key='' - let g:multi_cursor_quit_key='' + let g:multi_cursor_next_key = '' + let g:multi_cursor_prev_key = '' + let g:multi_cursor_skip_key = '' + let g:multi_cursor_quit_key = '' let g:user_emmet_install_global = 0 - let g:user_emmet_leader_key='' - let g:user_emmet_mode='a' - let g:user_emmet_settings = { + let g:user_emmet_leader_key = '' + let g:user_emmet_mode = 'a' + let g:user_emmet_settings = { \ 'jsp' : { \ 'extends' : 'html', \ }, @@ -38,4 +38,7 @@ function! SpaceVim#layers#edit#config() abort "noremap (wildfire-fuel) vnoremap (wildfire-water) let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it'] + let g:_spacevim_mappings_space.x = {'name' : '+Text'} + let g:_spacevim_mappings_space.x.a = {'name' : '+align'} + call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '&'], 'Tabularize /&', 'align region at &', 1) endfunction diff --git a/docs/documentation.md b/docs/documentation.md index 029940ed8..a951b4001 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -77,6 +77,9 @@ title: "Documentation" * [Searching the web](#searching-the-web) * [Persistent highlighting](#persistent-highlighting) * [Editing](#editing) + * [Paste text](#paste-text) + * [Auto-indent pasted text](#auto-indent-pasted-text) + * [Text manipulation commands](#text-manipulation-commands) * [Multi-Encodings](#multi-encodings) * [Errors handling](#errors-handling) * [Features](#features) @@ -1104,6 +1107,14 @@ SpaceVim uses `g:spacevim_search_highlight_persist` to keep the searched express ### Editing +#### Paste text + +##### Auto-indent pasted text + +#### Text manipulation commands + +Text related commands (start with `x`): + #### Multi-Encodings SpaceVim use utf-8 as default encoding. there are four options for these case: