mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 04:50:04 +08:00
Add text manipulation commands example PR
This commit is contained in:
parent
f931ed08b0
commit
b55751be03
@ -23,14 +23,14 @@ function! SpaceVim#layers#edit#plugins() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#layers#edit#config() abort
|
function! SpaceVim#layers#edit#config() abort
|
||||||
let g:multi_cursor_next_key='<C-j>'
|
let g:multi_cursor_next_key = '<C-j>'
|
||||||
let g:multi_cursor_prev_key='<C-k>'
|
let g:multi_cursor_prev_key = '<C-k>'
|
||||||
let g:multi_cursor_skip_key='<C-x>'
|
let g:multi_cursor_skip_key = '<C-x>'
|
||||||
let g:multi_cursor_quit_key='<Esc>'
|
let g:multi_cursor_quit_key = '<Esc>'
|
||||||
let g:user_emmet_install_global = 0
|
let g:user_emmet_install_global = 0
|
||||||
let g:user_emmet_leader_key='<C-e>'
|
let g:user_emmet_leader_key = '<C-e>'
|
||||||
let g:user_emmet_mode='a'
|
let g:user_emmet_mode = 'a'
|
||||||
let g:user_emmet_settings = {
|
let g:user_emmet_settings = {
|
||||||
\ 'jsp' : {
|
\ 'jsp' : {
|
||||||
\ 'extends' : 'html',
|
\ 'extends' : 'html',
|
||||||
\ },
|
\ },
|
||||||
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user