aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--ftplugin/todo.vim5
2 files changed, 4 insertions, 3 deletions
diff --git a/TODO b/TODO
index 7f92bf3..fb4cc91 100644
--- a/TODO
+++ b/TODO
@@ -19,4 +19,4 @@ Escalation and "descalation" should be an operator-pending mapping
v Don't save edits in search history
- Add repeat support
- Add license headers
-- Add no_plugin_maps support
+v Add no_plugin_maps support
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-