diff --git a/autoload/tablemode.vim b/autoload/tablemode.vim index 63e6cde..d5d2b84 100644 --- a/autoload/tablemode.vim +++ b/autoload/tablemode.vim @@ -55,9 +55,11 @@ function! s:ToggleMapping() "{{{2 endif if !hasmapto('(table-mode-cell-text-object-a)', 'o') omap a (table-mode-cell-text-object-a) + xmap a (table-mode-cell-text-object-a) endif if !hasmapto('(table-mode-cell-text-object-i)', 'o') omap i (table-mode-cell-text-object-i) + xmap i (table-mode-cell-text-object-i) endif if !hasmapto('(table-mode-realign)', 'n') nmap tr (table-mode-realign) diff --git a/plugin/table-mode.vim b/plugin/table-mode.vim index 8bc0d9d..abeaa66 100644 --- a/plugin/table-mode.vim +++ b/plugin/table-mode.vim @@ -105,6 +105,8 @@ nnoremap (table-mode-motion-right) :call tablemode#spreadshe onoremap (table-mode-cell-text-object-a) :call tablemode#spreadsheet#cell#TextObject(0) onoremap (table-mode-cell-text-object-i) :call tablemode#spreadsheet#cell#TextObject(1) +xnoremap (table-mode-cell-text-object-a) :call tablemode#spreadsheet#cell#TextObject(0) +xnoremap (table-mode-cell-text-object-i) :call tablemode#spreadsheet#cell#TextObject(1) nnoremap (table-mode-delete-row) :call tablemode#spreadsheet#DeleteRow() nnoremap (table-mode-delete-column) :call tablemode#spreadsheet#DeleteColumn()