Warning
THIS PLUGIN IS A WORK IN PROGRESS! ANYTHING CAN CHANGE AT ANY MOMENT WITHOUT ANY NOTICE! USE IT AT YOUR OWN RISK!
A Vim plugin to manage your TODOs and FIXMEs efficiently without leaving your editor.
- Project-wide Scanning: Automatically greps your working directory for
TODOandFIXMEcomments. - Priority Sorting: Organizes tasks by priority (FIXMEs are prioritized over TODOs).
- Native Navigation: Press
<Enter>on any task in the list to immediately jump to that file and line. - Custom Syntax Highlighting: The
todos.txtfile is automatically color-coded for readability.
Note
These instructions are for vim-plug.
Add this to your .vimrc:
Plug 'Yahm3/todos.vim'
After adding to your .vimrc file, save and source it (:source $MYVIMRC), then install it with:
:PlugInstall
Note
These instructions are for LazyVim.
Create a new file in ~/.config/nvim/lua/plugins/todos.vim.lua and paste the contents below:
return {
{ "Yahm3/todos.vim" },
}Save and source(source ~/.config/nvim/init.lua) you init.lua file.
-
:Time [args]— Displays the month, day, and time (e.g.,Jul 21 17:29). -
Pass
dto show only the day. -
Pass
tto show only the time. -
:TdGen— Generates (or updates) atodos.txtfile in your current working directory containing all TODOs/FIXMEs. -
:TdOpen— Opens thetodos.txtfile. If it doesn't exist, it generates it first.
By default, the plugin maps the following keys in normal mode:
<leader>td— Generates and updates thetodos.txtfile.<leader>tdo— Opens thetodos.txtfile.
Inside the todos.txt buffer:
<CR>(Enter) — Jump directly to the file and line of the TODO/FIXME under your cursor.
For more detailed information, view the built-in help documentation inside Vim:
:help todos
