X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c3a600c42a1374530ecc1b681f26595ea5f22ee2..8853cbca8d956767e357540de792259f3922d15b:/ftplugin/mkd.vim diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index a2e7b5e..9d84c77 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -505,31 +505,29 @@ function! s:OpenUrlUnderCursor() endif endfunction -call MapNormVis('(Markdown_MoveToNextHeader)', 'Markdown_MoveToNextHeader') -call MapNormVis('(Markdown_MoveToPreviousHeader)', 'Markdown_MoveToPreviousHeader') -call MapNormVis('(Markdown_MoveToNextSiblingHeader)', 'Markdown_MoveToNextSiblingHeader') -call MapNormVis('(Markdown_MoveToPreviousSiblingHeader)', 'Markdown_MoveToPreviousSiblingHeader') -" Menmonic: Up -call MapNormVis('(Markdown_MoveToParentHeader)', 'Markdown_MoveToParentHeader') -" Menmonic: Current -call MapNormVis('(Markdown_MoveToCurHeader)', 'Markdown_MoveToCurHeader') +call MapNormVis('Markdown_MoveToNextHeader', 'Markdown_MoveToNextHeader') +call MapNormVis('Markdown_MoveToPreviousHeader', 'Markdown_MoveToPreviousHeader') +call MapNormVis('Markdown_MoveToNextSiblingHeader', 'Markdown_MoveToNextSiblingHeader') +call MapNormVis('Markdown_MoveToPreviousSiblingHeader', 'Markdown_MoveToPreviousSiblingHeader') +call MapNormVis('Markdown_MoveToParentHeader', 'Markdown_MoveToParentHeader') +call MapNormVis('Markdown_MoveToCurHeader', 'Markdown_MoveToCurHeader') nnoremap (OpenUrlUnderCursor) :call OpenUrlUnderCursor() if !get(g:, 'vim_markdown_no_default_key_mappings', 0) - nmap ]] (Markdown_MoveToNextHeader) - nmap [[ (Markdown_MoveToPreviousHeader) - nmap ][ (Markdown_MoveToNextSiblingHeader) - nmap [] (Markdown_MoveToPreviousSiblingHeader) - nmap ]u (Markdown_MoveToParentHeader) - nmap ]c (Markdown_MoveToCurHeader) - nmap gx (OpenUrlUnderCursor) - - vmap ]] (Markdown_MoveToNextHeader) - vmap [[ (Markdown_MoveToPreviousHeader) - vmap ][ (Markdown_MoveToNextSiblingHeader) - vmap [] (Markdown_MoveToPreviousSiblingHeader) - vmap ]u (Markdown_MoveToParentHeader) - vmap ]c (Markdown_MoveToCurHeader) + nmap ]] Markdown_MoveToNextHeader + nmap [[ Markdown_MoveToPreviousHeader + nmap ][ Markdown_MoveToNextSiblingHeader + nmap [] Markdown_MoveToPreviousSiblingHeader + nmap ]u Markdown_MoveToParentHeader + nmap ]c Markdown_MoveToCurHeader + nmap gx OpenUrlUnderCursor + + vmap ]] Markdown_MoveToNextHeader + vmap [[ Markdown_MoveToPreviousHeader + vmap ][ Markdown_MoveToNextSiblingHeader + vmap [] Markdown_MoveToPreviousSiblingHeader + vmap ]u Markdown_MoveToParentHeader + vmap ]c Markdown_MoveToCurHeader endif command! -buffer -range=% HeaderDecrease call s:HeaderDecrease(, )