diff options
author | Teddy Wing | 2020-03-21 23:56:01 +0100 |
---|---|---|
committer | Teddy Wing | 2020-03-21 23:56:01 +0100 |
commit | 95504b5b4f6e6f207cd9fcbfb2b71cec815ff280 (patch) | |
tree | f97f1f2dcbab89ac5998d56e29f5634354cef79b | |
parent | 8d48a5c1beb6ec65cee1841967251a31a04fb12c (diff) | |
download | vim-twodo-95504b5b4f6e6f207cd9fcbfb2b71cec815ff280.tar.bz2 |
Disable ftplugin mappings with `g:no_plugin_maps`
-rw-r--r-- | ftplugin/todo.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index ff9be27..e970853 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -3,8 +3,9 @@ if exists("b:did_ftplugin") endif let b:did_ftplugin = 1 -" TODO: Add no_plugin_mappings or whatever - +if exists('g:no_plugin_maps') || exists('g:no_todo_maps') + finish +endif nnoremap <silent> <buffer> <Plug>TwodoNewTodoBelow o- nnoremap <silent> <buffer> <Plug>TwodoNewTodoAbove O- |