From 69e1ddf05b8f582d1d81025fe940a7a275cceaf7 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Wed, 18 Jun 2014 12:35:38 +0200 Subject: [PATCH] Make the default mappings buffer local If mappings aren't defined as 'buffer local', they are defined in other files too and this causes conflicts with mappings there. --- ftplugin/mkd.vim | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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() -- 2.39.5