From 68054387797e1984e57337ddc0c39ea50893eedc Mon Sep 17 00:00:00 2001 From: Maxim Kim Date: Tue, 16 Jul 2013 11:27:44 +0400 Subject: [PATCH] Change some list mappings to have prefix . Remove , and mappings. Use , , instead. --- doc/vimwiki.txt | 16 ++++++---------- ftplugin/vimwiki.vim | 6 +++--- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index ce73b43..b49037b 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -414,20 +414,16 @@ INSERT MODE *vimwiki-list-mappings* *vimwiki_i__list* Decrease the level of a list item. -XXX: should not use we override default increase number. - - *vimwiki_i__list* - Change the marker of the current list item to the next + *vimwiki_i___list* + Change the marker of the current list item to the next available. From * to - to # to 1. to a). -XXX: this hangs vim - *vimwiki_i__list* - Change the marker of the current list item to the prev + *vimwiki_i___list* + Change the marker of the current list item to the prev available. From * to a) to 1. to # to -. -XXX: Propose another mapping here. - *vimwiki_i__list* - Create/remove a marker from a list item. + *vimwiki_i___list* + Create/remove a marker from a list item. ------------------------------------------------------------------------------ diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim index 71d8822..b1607f0 100644 --- a/ftplugin/vimwiki.vim +++ b/ftplugin/vimwiki.vim @@ -463,14 +463,14 @@ map gLH glH map gLL gLl inoremap :VimwikiListDecreaseLvl 0 inoremap :VimwikiListIncreaseLvl 0 -inoremap :VimwikiListChangeMarker next -inoremap :VimwikiListChangeMarker prev +inoremap :VimwikiListChangeMarker next +inoremap :VimwikiListChangeMarker prev nmap glr :call vimwiki#lst#adjust_numbered_list() nmap gLr :call vimwiki#lst#adjust_whole_buffer() nmap gLR gLr noremap gl :VimwikiListRemoveCB map gL :call vimwiki#lst#remove_cb_in_list() -inoremap :call vimwiki#lst#toggle_list_item() +inoremap :call vimwiki#lst#toggle_list_item() for s:k in keys(g:vimwiki_bullet_points) exe 'noremap gl'.s:k.' :VimwikiListChangeMarker '.s:k.''