-
23 votes
-
In Neovim, C-a and C-x will increment/decrement a number under the cursor in Normal mode
Also works in Vim. Thought this was neat. Wanted to share. Thanks @spicyq. It turns out Emacs does have this feature built-in (via Org-mode) with the commands org-increase-number-at-point and...
Also works in Vim.
Thought this was neat. Wanted to share.
Thanks @spicyq. It turns out Emacs does have this feature built-in (via Org-mode) with the commands
org-increase-number-at-pointandorg-decrease-number-at-point.The commands:
- Work in any mode, not just
org-mode - Support prefix arguments with
C-u - Do not have a default keybind
I bound the commands to
C-z <up>andC-z <down>, since I had previously unboundsuspend-framefromC-z:(keymap-global-unset "C-z" 'remove) ; suspend-frameKeep in mind you can repeat your last executed command with
C-x z(and then just keep pressingzto repeat the command however many times you want).Of course, now that I've got this far, I'm realizing that typing out either
C-u 10 C-z <up>orC-z <up> C-x z+z* 9 is probably a lot more keystrokes than just changing the number myself. (At least for a single number at a single point in the buffer.)I don't think there is a built-in Emacs feature that does the same thing. You can find several custom Emacs Lisp solutions by searching online though.21 votes - Work in any mode, not just
-
So you want to write Java in Neovim
4 votes -
Firenvim - embed Neovim in to Firefox/Chrome
12 votes