diff options
author | Teddy Wing | 2020-03-25 20:25:54 +0100 |
---|---|---|
committer | Teddy Wing | 2020-03-25 21:45:16 +0100 |
commit | 2043ce6e5d97730413de2f864e6ebbf0efbe1b41 (patch) | |
tree | 7207c856f560145dc00195ae7244a7acf49ad033 /bundle/todo-comments/plugin/todo_comments.vim | |
parent | 607854e64e68702b55a8873825b0e902bc944e0c (diff) | |
download | dotvim-2043ce6e5d97730413de2f864e6ebbf0efbe1b41.tar.bz2 |
todo: Rename plugin to 'todo-comments'
This plugin (specifically the `autoload/todo.vim` file) was colliding
with the 'vim-twodo' plugin, which uses the same file name.
Rename this plugin to prevent name conflicts.
Diffstat (limited to 'bundle/todo-comments/plugin/todo_comments.vim')
-rw-r--r-- | bundle/todo-comments/plugin/todo_comments.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bundle/todo-comments/plugin/todo_comments.vim b/bundle/todo-comments/plugin/todo_comments.vim new file mode 100644 index 0000000..26d243b --- /dev/null +++ b/bundle/todo-comments/plugin/todo_comments.vim @@ -0,0 +1,17 @@ +if exists('g:loaded_todo_comments') + finish +endif +let g:loaded_todo = 1 + + +nnoremap <silent> <Plug>(todo-comments-previous) :<C-u>call todo_comments#PreviousTODO()<CR> +nnoremap <silent> <Plug>(todo-comments-next) :<C-u>call todo_comments#NextTODO()<CR> + + +if !hasmapto('<Plug>(todo-comments-previous)', 'n') && !maparg('[t', 'n') + nmap [t <Plug>(todo-comments-previous) +endif + +if !hasmapto('<Plug>(todo-comments-next)', 'n') && !maparg(']t', 'n') + nmap ]t <Plug>(todo-comments-next) +endif |