vim-todo-lists icon indicating copy to clipboard operation
vim-todo-lists copied to clipboard

Using vim-plug

Open gko opened this issue 6 years ago • 2 comments

First of all thanks for the plugin.

When I try to use it via vim-plug as following:

Plug 'aserebryakov/vim-todo-lists', { 'for': 'todo' }

It doesn't seem to work even though I did configure filetype correctly:

autocmd BufRead,BufNewFile *.todo set ft=todo

It does work if I add call VimTodoListsInit:

autocmd BufRead,BufNewFile *.todo set ft=todo | call VimTodoListsInit()

but I find this solution a bit of a hack.

gko avatar Jun 14 '19 07:06 gko

🆙 It'd be great to address this issue! Thanks for showing the workaround.

jduan avatar Jul 10 '19 17:07 jduan

You can just add the plugin without arguments to Plug and without calling autocmd. Adding this to .vimrc (Vim 9.1) works out-of-the-box:

Plug 'aserebryakov/vim-todo-lists'

benjaminvdb avatar Apr 19 '24 08:04 benjaminvdb