From: Yosuke OTA Date: Tue, 17 Jun 2014 11:35:15 +0000 (+0900) Subject: Use get() instead of exists() in ftplugin/mkd.vim X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/b145d94e9521d9bc060934d5c6e56cc98b488036?ds=sidebyside Use get() instead of exists() in ftplugin/mkd.vim --- diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index 21043a6..1e48365 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -368,8 +368,7 @@ call MapNormVis('(Markdown_MoveToParentHeader)', 'Markdown_MoveT " Menmonic: Current call MapNormVis('(Markdown_MoveToCurHeader)', 'Markdown_MoveToCurHeader') -if ! exists('g:vim_markdown_no_default_key_mappings') -\ || !g:vim_markdown_no_default_key_mappings +if !get(g:, 'vim_markdown_no_default_key_mappings', 0) nmap ]] (Markdown_MoveToNextHeader) nmap [[ (Markdown_MoveToPreviousHeader) nmap ][ (Markdown_MoveToNextSiblingHeader)