From: Hiroshi Shirosaki Date: Wed, 18 Jun 2014 13:21:06 +0000 (+0900) Subject: Merge pull request #94 from bruno-/buffer_local_mappings X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/7b213323a86d88810aa2f97f15f5079c67cf3d48?hp=17be3cdaeaedc796fade2c3d93d31fef56a68934 Merge pull request #94 from bruno-/buffer_local_mappings Make the default mappings 'buffer local' --- diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index 1e48365..ee861e7 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -369,19 +369,19 @@ call MapNormVis('(Markdown_MoveToParentHeader)', 'Markdown_MoveT call MapNormVis('(Markdown_MoveToCurHeader)', 'Markdown_MoveToCurHeader') 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 ]] (Markdown_MoveToNextHeader) + nmap [[ (Markdown_MoveToPreviousHeader) + nmap ][ (Markdown_MoveToNextSiblingHeader) + nmap [] (Markdown_MoveToPreviousSiblingHeader) + nmap ]u (Markdown_MoveToParentHeader) + nmap ]c (Markdown_MoveToCurHeader) - vmap ]] (Markdown_MoveToNextHeader) - vmap [[ (Markdown_MoveToPreviousHeader) - vmap ][ (Markdown_MoveToNextSiblingHeader) - vmap [] (Markdown_MoveToPreviousSiblingHeader) - vmap ]u (Markdown_MoveToParentHeader) - vmap ]c (Markdown_MoveToCurHeader) + vmap ]] (Markdown_MoveToNextHeader) + vmap [[ (Markdown_MoveToPreviousHeader) + vmap ][ (Markdown_MoveToNextSiblingHeader) + vmap [] (Markdown_MoveToPreviousSiblingHeader) + vmap ]u (Markdown_MoveToParentHeader) + vmap ]c (Markdown_MoveToCurHeader) endif command! -buffer Toc call s:Markdown_Toc()