Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions autoload/swap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let g:swap#stimeoutlen = get(g:, 'swap#stimeoutlen', 50)
let g:swap#highlight = get(g:, 'swap#highlight', s:TRUE)
let g:swap#default_rules = [
\ {
\ 'descripsion': 'Reorder the selected space-delimited word in visual mode.',
\ 'description': 'Reorder the selected space-delimited word in visual mode.',
\ 'mode': 'x',
\ 'delimiter': ['\s\+'],
\ 'braket': [['(', ')'], ['[', ']'], ['{', '}']],
Expand All @@ -32,7 +32,7 @@ let g:swap#default_rules = [
\ },
\
\ {
\ 'descripsion': 'Reorder the space-delimited word under the cursor in normal mode.',
\ 'description': 'Reorder the space-delimited word under the cursor in normal mode.',
\ 'mode': 'n',
\ 'body': '\%(\h\w*\s*\)\+\%(\h\w*\)\?',
\ 'delimiter': ['\s\+'],
Expand Down Expand Up @@ -209,6 +209,15 @@ let g:swap#default_rules = [
\ 'quotes': [['"', '"'], ["'", "'"]],
\ 'immutable': ['\%(^\_s\|\n\)\s*', '\s\+$']
\ },
\ {
\ 'description': 'Reorder the space-separated items in () for lisp.',
\ 'filetype': ['lisp'],
\ 'mode': 'n',
\ 'surrounds': ['(', ')', 1],
\ 'braket': [['(', ')']],
\ 'quotes': [['"', '"']],
\ 'delimiter': [' '],
\ },
\ ]


Expand Down