aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-03-21 23:56:01 +0100
committerTeddy Wing2020-03-21 23:56:01 +0100
commit95504b5b4f6e6f207cd9fcbfb2b71cec815ff280 (patch)
treef97f1f2dcbab89ac5998d56e29f5634354cef79b
parent8d48a5c1beb6ec65cee1841967251a31a04fb12c (diff)
downloadvim-twodo-95504b5b4f6e6f207cd9fcbfb2b71cec815ff280.tar.bz2
Disable ftplugin mappings with `g:no_plugin_maps`
-rw-r--r--ftplugin/todo.vim5
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-