From: Hiroshi Shirosaki Date: Mon, 7 Apr 2014 23:49:34 +0000 (+0900) Subject: Rename g:markdown_no_default_key_mappings X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a4780275ce62f08cf317fc54306199b27807a443?ds=sidebyside Rename g:markdown_no_default_key_mappings Every non local identifier must start with g:vim_markdown_ from CONTRIBUTING.md. --- diff --git a/README.md b/README.md index b004bbc..24c5c6c 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,10 @@ let g:vim_markdown_initial_foldlevel=1 **Disable Default Key Mappings** -Add the following line to your `.vimrc` to disable default key mappings. You can map them by yourself with `` mappings +Add the following line to your `.vimrc` to disable default key mappings. You can map them by yourself with `` mappings. ```vim -let g:markdown_no_default_key_mappings=1 +let g:vim_markdown_no_default_key_mappings=1 ``` ## Mappings diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index c7bac4e..07f81db 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -351,8 +351,8 @@ call MapNormVis('(Markdown_MoveToParentHeader)', 'b:Markdown_MoveToPa " Menmonic: Current call MapNormVis('(Markdown_MoveToCurHeader)', 'b:Markdown_MoveToCurHeader') -if ! exists('g:markdown_no_default_key_mappings') -\ || !g:markdown_no_default_key_mappings +if ! exists('g:vim_markdown_no_default_key_mappings') +\ || !g:vim_markdown_no_default_key_mappings nmap ]] (Markdown_MoveToNextHeader) nmap [[ (Markdown_MoveToPreviousHeader) nmap ][ (Markdown_MoveToNextSiblingHeader)