diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 6e15d2f..0b21c1b 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -612,7 +612,14 @@ TABLE MAPPINGS, INSERT MODE *vimwiki-table-mappings* *vimwiki_i__table* Go to the next table cell, create a new row if on the - last cell. + last cell. Adjusts the whole column width according + to the largest cell. + Remap command: `VimwikiTableNextCell` + + *vimwiki_i__table* + Go to the previous table cell. Adjusts the whole + column width according to the largest cell. + Remap command: `VimwikiTablePrevCell` LIST MAPPINGS, INSERT MODE *vimwiki-list-mappings* *vimwiki_i_* @@ -3844,6 +3851,7 @@ Contributors and their Github usernames in roughly chronological order: - Daniel Moura (@dmouraneto) - Tomáš Janoušek (@liskin) - Rajesh Sharem (@deepredsky) + - Amit Beka (@amitbeka) ============================================================================== 16. Changelog *vimwiki-changelog* @@ -3855,6 +3863,7 @@ http://code.google.com/p/vimwiki/issues/list. They may be accessible from https://github.com/vimwiki-backup/vimwiki/issues. New:~ + * Feature: enable re-mapping insert mode table mappings * Feature: #954 #1041: Add option |vimwiki-option-listsyms_propagate| to disable todo propagation to parents/children * Issue #1009: |foldmethod| syntax works for markdown (|g:vimwiki_folding|) diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim index d6c8973..cfa7587 100644 --- a/ftplugin/vimwiki.vim +++ b/ftplugin/vimwiki.vim @@ -595,9 +595,13 @@ function! s:CR(normal, just_mrkr) abort endfunction " insert mode table mappings +inoremap VimwikiTableNextCell + \ vimwiki#tbl#kbd_tab() +inoremap VimwikiTablePrevCell + \ vimwiki#tbl#kbd_shift_tab() if str2nr(vimwiki#vars#get_global('key_mappings').table_mappings) - inoremap vimwiki#tbl#kbd_tab() - inoremap vimwiki#tbl#kbd_shift_tab() + call vimwiki#u#map_key('i', '', 'VimwikiTableNextCell') + call vimwiki#u#map_key('i', '', 'VimwikiTablePrevCell') endif " table formatting definitions