Skip to content

Commit

Permalink
Rename g:markdown_no_default_key_mappings
Browse files Browse the repository at this point in the history
Every non local identifier must start with g:vim_markdown_ from
CONTRIBUTING.md.
  • Loading branch information
shirosaki committed Apr 7, 2014
1 parent 290d61b commit a478027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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 `<Plug>` mappings
Add the following line to your `.vimrc` to disable default key mappings. You can map them by yourself with `<Plug>` mappings.

```vim
let g:markdown_no_default_key_mappings=1
let g:vim_markdown_no_default_key_mappings=1
```

## Mappings
Expand Down
4 changes: 2 additions & 2 deletions ftplugin/mkd.vim
Expand Up @@ -351,8 +351,8 @@ call <sid>MapNormVis('<Plug>(Markdown_MoveToParentHeader)', 'b:Markdown_MoveToPa
" Menmonic: Current
call <sid>MapNormVis('<Plug>(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 ]] <Plug>(Markdown_MoveToNextHeader)
nmap [[ <Plug>(Markdown_MoveToPreviousHeader)
nmap ][ <Plug>(Markdown_MoveToNextSiblingHeader)
Expand Down

0 comments on commit a478027

Please sign in to comment.