" vim: set fdm=marker et ts=4 sw=4 sts=4: function! pandoc#keyboard#lists#Init() abort "{{{1 noremap (pandoc-keyboard-next-li) :call pandoc#keyboard#lists#NextListItem() noremap (pandoc-keyboard-prev-li) :call pandoc#keyboard#lists#PrevListItem() noremap (pandoc-keyboard-cur-li) :call pandoc#keyboard#lists#CurrentListItem() noremap (pandoc-keyboard-cur-li-parent) :call pandoc#keyboard#lists#CurrentListItemParent() noremap (pandoc-keyboard-next-li-sibling) :call pandoc#keyboard#lists#NextListItemSibling() noremap (pandoc-keyboard-prev-li-sibling) :call pandoc#keyboard#lists#PrevListItemSibling() noremap (pandoc-keyboard-first-li-child) :call pandoc#keyboard#lists#FirstListItemChild() noremap (pandoc-keyboard-last-li-child) :call pandoc#keyboard#lists#LastListItemChild() noremap (pandoc-keyboard-nth-li-child) :call pandoc#keyboard#lists#GotoNthListItemChild(v:count1) if g:pandoc#keyboard#use_default_mappings == 1 && index(g:pandoc#keyboard#blacklist_submodule_mappings, 'lists') == -1 nmap ln (pandoc-keyboard-next-li) nmap lp (pandoc-keyboard-prev-li) nmap ll (pandoc-keyboard-cur-li) nmap llp (pandoc-keyboard-cur-li-parent) nmap lsn (pandoc-keyboard-next-li-sibling) nmap lsp (pandoc-keyboard-prev-li-sibling) nmap lcf (pandoc-keyboard-first-li-child) nmap lcl (pandoc-keyboard-last-li-child) nmap lcn (pandoc-keyboard-nth-li-child) endif endfunction " Functions: {{{1 function! pandoc#keyboard#lists#NextListItem() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#NextListItem()) endfunction function! pandoc#keyboard#lists#PrevListItem() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#PrevListItem()) endfunction function! pandoc#keyboard#lists#CurrentListItem() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#CurrentListItem()) endfunction function! pandoc#keyboard#lists#CurrentListItemParent() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#CurrentListItemParent()) endfunction function! pandoc#keyboard#lists#NextListItemSibling() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#NextListItemSibling()) endfunction function! pandoc#keyboard#lists#PrevListItemSibling() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#PrevListItemSibling()) endfunction function! pandoc#keyboard#lists#FirstListItemChild() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#FirstChild()) endfunction function! pandoc#keyboard#lists#LastListItemChild() abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#LastChild()) endfunction function! pandoc#keyboard#lists#GotoNthListItemChild(count) abort "{{{2 call pandoc#keyboard#MovetoLine(markdown#lists#NthChild(a:count)) endfunction