From: Bruno Sutic Date: Wed, 18 Jun 2014 10:35:38 +0000 (+0200) Subject: Make the default mappings buffer local X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/69e1ddf05b8f582d1d81025fe940a7a275cceaf7?ds=sidebyside 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. --- 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()