Plugin Roundup: vim-pomodoro, diff-toggle, vim-addon-commenting
vim-pomodoro
vim-pomodoro (vim.org: vim-pomodoro, License: MIT) by Maximilian Nickel is a tool for working using the Pomodoro time management technique. :PomodoroStart [pomodoro_name]
starts a new pomodoro, then after the timer has ended a dialog will prompt you to take a break. It'll also automatically ask if a new pomodoro should be started.
It can be integrated with system-level notifications, and has settings for the time of a pomodoro task and more.
diff-toggle
vim-diff-toggle (vim.org: diff-toggle, License: Vim) by Odin Dutton adds some shortcuts to diff editing.
Pressing <Space>
will toggle the first character of the current line between +
and space characters. The author intends this to aid adding files using git add --edit
.
vim-addon-commenting
vim-addon-commenting (vim.org: vim-addon-commenting, License: Vim) by Marc Weber is a fork of Tim Pope’s vim-commentary that can toggle comments on blocks of code based on indentation level.
Pressing \\
will comment out a block based on the indentation level of each line of code. It takes a count argument, and can comment using motions.
Languages can be added using the following:
let g:vim_addon_commenting = {'force_filetype_comments': {'php': ['#',''], 'c' : ['/*','*/']}}
The indentation behaviour is what differentiates it from Tim Pope’s original plugin, it’s worth trying both if you’re looking for something in this area.