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 | |
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')
-rw-r--r-- | bundle/todo/autoload/todo.vim | 19 | ||||
-rw-r--r-- | bundle/todo/plugin/todo.vim | 17 |
2 files changed, 0 insertions, 36 deletions
diff --git a/bundle/todo/autoload/todo.vim b/bundle/todo/autoload/todo.vim deleted file mode 100644 index 6885b2b..0000000 --- a/bundle/todo/autoload/todo.vim +++ /dev/null @@ -1,19 +0,0 @@ -function! s:MoveToTODO(search_flags) - let cnt = v:count1 - normal! m' - - let i = 0 - while i < cnt - call search('TODO', a:search_flags) - - let i += 1 - endwhile -endfunction - -function! todo#NextTODO() - call s:MoveToTODO('') -endfunction - -function! todo#PreviousTODO() - call s:MoveToTODO('b') -endfunction diff --git a/bundle/todo/plugin/todo.vim b/bundle/todo/plugin/todo.vim deleted file mode 100644 index f4358a6..0000000 --- a/bundle/todo/plugin/todo.vim +++ /dev/null @@ -1,17 +0,0 @@ -if exists('g:loaded_todo') - finish -endif -let g:loaded_todo = 1 - - -nnoremap <silent> <Plug>(todo-previous) :<C-u>call todo#PreviousTODO()<CR> -nnoremap <silent> <Plug>(todo-next) :<C-u>call todo#NextTODO()<CR> - - -if !hasmapto('<Plug>(todo-previous)', 'n') && !maparg('[t', 'n') - nmap [t <Plug>(todo-previous) -endif - -if !hasmapto('<Plug>(todo-next)', 'n') && !maparg(']t', 'n') - nmap ]t <Plug>(todo-next) -endif |