Skip to content

Commit

Permalink
Fix SPC x a SPC again
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Oct 25, 2019
1 parent aba251a commit 2256162
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/SpaceVim/layers/edit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ function! SpaceVim#layers#edit#config() abort
call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', 'o'], 'Tabularize /&&\|||\|\.\.\|\*\*\|<<\|>>\|\/\/\|[-+*/.%^><&|?]/l1r1', 'align-region-at-operator, such as +,-,*,/,%,^,etc', 1, 1)
call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '¦'], 'Tabularize /¦', 'align-region-at-¦', 1, 1)
call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '<Bar>'], 'Tabularize /|', 'align-region-at-|', 1, 1)
call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '<Space>'], 'Tabularize /\s\ze\S/l0', 'align-region-at-space', 1, 1)
call SpaceVim#mapping#space#def('nmap', ['x', 'a', '[SPC]'], 'Tabularize /\s\ze\S/l0', 'align-region-at-space', 1, 1)
" @fixme SPC x a SPC make vim flick
nmap <Space>xa<Space> [SPC]xa[SPC]
call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', 'r'], 'call call('
\ . string(s:_function('s:align_at_regular_expression')) . ', [])',
\ 'align-region-at-user-specified-regexp', 1)
Expand Down

0 comments on commit 2256162

Please sign in to comment.