Change some list mappings to have prefix <C-L>.

Remove <C-B>, <C-S> and <C-A> mappings. Use <C-L><C-M>, <C-L><C-K>,
<C-L><C-J> instead.
This commit is contained in:
Maxim Kim 2013-07-16 11:27:44 +04:00
parent d873113118
commit 6805438779
2 changed files with 9 additions and 13 deletions

View File

@ -414,20 +414,16 @@ INSERT MODE *vimwiki-list-mappings*
*vimwiki_i_<C-D>_list* *vimwiki_i_<C-D>_list*
<C-D> Decrease the level of a list item. <C-D> Decrease the level of a list item.
XXX: should not use <C-A> we override default increase number. *vimwiki_i_<C-L>_<C-J>_list*
<C-L><C-J> Change the marker of the current list item to the next
*vimwiki_i_<C-A>_list*
<C-A> Change the marker of the current list item to the next
available. From * to - to # to 1. to a). available. From * to - to # to 1. to a).
XXX: this hangs vim *vimwiki_i_<C-L>_<C-K>_list*
*vimwiki_i_<C-S>_list* <C-L><C-K> Change the marker of the current list item to the prev
<C-S> Change the marker of the current list item to the prev
available. From * to a) to 1. to # to -. available. From * to a) to 1. to # to -.
XXX: Propose another mapping here. *vimwiki_i_<C-L>_<C-M>_list*
*vimwiki_i_<C-B>_list* <C-L><C-M> Create/remove a marker from a list item.
<C-B> Create/remove a marker from a list item.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------

View File

@ -463,14 +463,14 @@ map <silent> <buffer> gLH glH
map <silent> <buffer> gLL gLl map <silent> <buffer> gLL gLl
inoremap <buffer> <C-D> <C-O>:VimwikiListDecreaseLvl 0<CR> inoremap <buffer> <C-D> <C-O>:VimwikiListDecreaseLvl 0<CR>
inoremap <buffer> <C-T> <C-O>:VimwikiListIncreaseLvl 0<CR> inoremap <buffer> <C-T> <C-O>:VimwikiListIncreaseLvl 0<CR>
inoremap <buffer> <C-A> <C-O>:VimwikiListChangeMarker next<CR> inoremap <buffer> <C-L><C-J> <C-O>:VimwikiListChangeMarker next<CR>
inoremap <buffer> <C-S> <C-O>:VimwikiListChangeMarker prev<CR> inoremap <buffer> <C-L><C-K> <C-O>:VimwikiListChangeMarker prev<CR>
nmap <silent> <buffer> glr :call vimwiki#lst#adjust_numbered_list()<CR> nmap <silent> <buffer> glr :call vimwiki#lst#adjust_numbered_list()<CR>
nmap <silent> <buffer> gLr :call vimwiki#lst#adjust_whole_buffer()<CR> nmap <silent> <buffer> gLr :call vimwiki#lst#adjust_whole_buffer()<CR>
nmap <silent> <buffer> gLR gLr nmap <silent> <buffer> gLR gLr
noremap <silent> <buffer> gl<Space> :VimwikiListRemoveCB<CR> noremap <silent> <buffer> gl<Space> :VimwikiListRemoveCB<CR>
map <silent> <buffer> gL<Space> :call vimwiki#lst#remove_cb_in_list()<CR> map <silent> <buffer> gL<Space> :call vimwiki#lst#remove_cb_in_list()<CR>
inoremap <silent> <buffer> <C-B> <Esc>:call vimwiki#lst#toggle_list_item()<CR> inoremap <silent> <buffer> <C-L><C-M> <Esc>:call vimwiki#lst#toggle_list_item()<CR>
for s:k in keys(g:vimwiki_bullet_points) for s:k in keys(g:vimwiki_bullet_points)
exe 'noremap <silent> <buffer> gl'.s:k.' :VimwikiListChangeMarker '.s:k.'<CR>' exe 'noremap <silent> <buffer> gl'.s:k.' :VimwikiListChangeMarker '.s:k.'<CR>'