1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 14:50:06 +08:00

Add text manipulation commands example PR

This commit is contained in:
wsdjeg 2017-06-28 21:36:51 +08:00
parent f931ed08b0
commit b55751be03
2 changed files with 21 additions and 7 deletions

View File

@ -38,4 +38,7 @@ function! SpaceVim#layers#edit#config() abort
"noremap <SPACE> <Plug>(wildfire-fuel) "noremap <SPACE> <Plug>(wildfire-fuel)
vnoremap <C-SPACE> <Plug>(wildfire-water) vnoremap <C-SPACE> <Plug>(wildfire-water)
let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it'] 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 endfunction

View File

@ -77,6 +77,9 @@ title: "Documentation"
* [Searching the web](#searching-the-web) * [Searching the web](#searching-the-web)
* [Persistent highlighting](#persistent-highlighting) * [Persistent highlighting](#persistent-highlighting)
* [Editing](#editing) * [Editing](#editing)
* [Paste text](#paste-text)
* [Auto-indent pasted text](#auto-indent-pasted-text)
* [Text manipulation commands](#text-manipulation-commands)
* [Multi-Encodings](#multi-encodings) * [Multi-Encodings](#multi-encodings)
* [Errors handling](#errors-handling) * [Errors handling](#errors-handling)
* [Features](#features) * [Features](#features)
@ -1104,6 +1107,14 @@ SpaceVim uses `g:spacevim_search_highlight_persist` to keep the searched express
### Editing ### Editing
#### Paste text
##### Auto-indent pasted text
#### Text manipulation commands
Text related commands (start with `x`):
#### Multi-Encodings #### Multi-Encodings
SpaceVim use utf-8 as default encoding. there are four options for these case: SpaceVim use utf-8 as default encoding. there are four options for these case: